Skip to content

Commit

Permalink
fix clickoutside when no branch in MPM
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic authored and lucasOsti committed Aug 22, 2023
1 parent d202c0d commit 9bcc0b4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@

handleClickOutside(event) {
const topBranch = this.triggerElement.branchElement;

if (!topBranch) {
return;
}

const closestPopup = event.target.closest('.ibexa-popup-menu');
const isPopupMenuExpanded = !topBranch.classList.contains('ibexa-popup-menu--hidden');
const isClickInsideTrigger = this.triggerElement.contains(event.target);
Expand Down

0 comments on commit 9bcc0b4

Please sign in to comment.