We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 362713f commit 77d6d86Copy full SHA for 77d6d86
src/useFocusTrap.tsx
@@ -21,7 +21,7 @@ export function useFocusTrap({
21
const handleKeydown = useEventCallback((event: KeyboardEvent) => {
22
const container = getContainer();
23
24
- if (event.key !== 'Tab' || !container) {
+ if (event.key !== 'Tab' || !container || disabled?.()) {
25
return;
26
}
27
0 commit comments