Skip to content

Commit fcb8ada

Browse files
authored
[6.x] Ignore toolbar shortcuts while inside menus (#14111)
Include dropdown menu in toolbar shortcut overlay check Signed-off-by: Philipp Daun <post@philippdaun.net>
1 parent 19256b5 commit fcb8ada

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

resources/js/components/ui/Listing/BulkActionsFloatingToolbar.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const actionsWithShortcuts = computed(() => {
6161
// ——— Keyboard handler: skip when overlays or form controls have focus ———
6262
function hasOpenOverlay() {
6363
return !!document.querySelector(
64-
'[data-ui-modal-content], .stack-content, [role="dialog"]'
64+
'[data-ui-modal-content], [data-ui-dropdown-menu], .stack-content, [role="dialog"]'
6565
);
6666
}
6767
@@ -152,4 +152,3 @@ onUnmounted(() => document.removeEventListener('keydown', onKeydown, true));
152152
</div>
153153
</Motion>
154154
</template>
155-

0 commit comments

Comments
 (0)