From e691c7a64d0adb8db45acb4f1e05c109787a02aa Mon Sep 17 00:00:00 2001 From: MertOzbudak Date: Thu, 16 May 2024 14:06:47 +0300 Subject: [PATCH] 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 --- src/components/popover/bl-popover.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/popover/bl-popover.ts b/src/components/popover/bl-popover.ts index c2033067..f2e04b9b 100644 --- a/src/components/popover/bl-popover.ts +++ b/src/components/popover/bl-popover.ts @@ -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(); } }