Skip to content

Commit

Permalink
after qa
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Sep 11, 2024
1 parent ecb8378 commit fb7e91d
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,18 @@
}

closeBranch(branchElement) {
this.toggleBranch(branchElement, false);
}

toggleBranch(branchElement, shouldBeExpanded = true) {
const topBranch = this.triggerElement.branchElement;
const searchInput = branchElement.querySelector('.ibexa-multilevel-popup-menu__search-input');

if (searchInput?.value !== '') {
searchInput.value = '';
searchInput.dispatchEvent(new Event('input'));
}

this.toggleBranch(branchElement, false);
}

toggleBranch(branchElement, shouldBeExpanded = true) {
const topBranch = this.triggerElement.branchElement;

branchElement.classList.toggle('ibexa-popup-menu--hidden', !shouldBeExpanded);

if (branchElement === topBranch) {
Expand Down

0 comments on commit fb7e91d

Please sign in to comment.