Skip to content

Commit e691c7a

Browse files
MertOzbudakmert.ozbudak
andauthored
fix(popover): Fix bl-tooltip trigger issue (#871)
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]>
1 parent a526c35 commit e691c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/popover/bl-popover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export default class BlPopover extends LitElement {
222222
const { parentElement } = event.target as HTMLElement;
223223
const isNestedPopover = this.contains(parentElement);
224224

225-
if (!isNestedPopover) {
225+
if (!isNestedPopover && (event.target as HTMLElement).tagName === this.tagName) {
226226
this.hide();
227227
}
228228
}

0 commit comments

Comments
 (0)