mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 08:55:12 -05:00
fix: Escape closes a menu on the first press again (#32799)
Opening a menu moves the focus to its first entry, and when that entry has a tooltip the tooltip showed and took the first Escape, so the menu stayed open until Escape was pressed a second time. The open menu now gets Escape before the tooltip does and closes on the first press, while Escape in a submenu still closes only the submenu and Escape on a tooltip in a dialog still only hides the tooltip. Fixes #32798
This commit is contained in:
1 parent
243ef36c49
commit
d5e27b559e
1 file changed
+1
@@ -383,6 +383,7 @@
|
||||
if (closeOnSelect && !e.defaultPrevented) closeDropdown();
|
||||
}}
|
||||
on:pointerdown={(e) => e.stopPropagation()}
|
||||
on:keydown={handleKeydown}
|
||||
>
|
||||
<slot name="content" />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user