UBER-614: fix submenu popups on scrolling (#3530)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-07-28 16:03:57 +05:00 committed by GitHub
parent f4183e7d33
commit fe5620dfd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -478,7 +478,12 @@
class="scroll relative flex-shrink"
style:overflow-x={horizontal ? 'auto' : 'hidden'}
on:scroll={() => {
if ($tooltipstore.label !== undefined || $tooltipstore.component !== undefined) closeTooltip()
if (
$tooltipstore.label !== undefined ||
($tooltipstore.component !== undefined && $tooltipstore.kind !== 'submenu')
) {
closeTooltip()
}
}}
>
<div