Skip to content

Commit afe570c

Browse files
authored
Exclude hidden inputs from focusable elements (#757)
1 parent cf7a8eb commit afe570c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: resources/views/components/modal.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
show: @entangle($attributes->wire('model')).defer,
1818
focusables() {
1919
// All focusable element types...
20-
let selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex=\'-1\'])'
20+
let selector = 'a, button, input:not([type=\'hidden\'], textarea, select, details, [tabindex]:not([tabindex=\'-1\'])'
2121
2222
return [...$el.querySelectorAll(selector)]
2323
// All non-disabled elements...

0 commit comments

Comments
 (0)