Skip to content

Commit

Permalink
fix(popover): Fix bl-tooltip trigger issue (#871)
Browse files Browse the repository at this point in the history
Nested popover cause this issue, I added tagname control in
_handlePopoverShowEvent to prevent unnecessary hide for bl-tooltip

closes #801

Co-authored-by: mert.ozbudak <[email protected]>
  • Loading branch information
MertOzbudak and mert.ozbudak authored May 16, 2024
1 parent a526c35 commit e691c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/popover/bl-popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export default class BlPopover extends LitElement {
const { parentElement } = event.target as HTMLElement;
const isNestedPopover = this.contains(parentElement);

if (!isNestedPopover) {
if (!isNestedPopover && (event.target as HTMLElement).tagName === this.tagName) {
this.hide();
}
}
Expand Down

0 comments on commit e691c7a

Please sign in to comment.