From ba9ab729bef7666ac1eb7ad9be701bd7e8741db1 Mon Sep 17 00:00:00 2001 From: Sheng Slogar Date: Tue, 16 Jul 2024 18:16:26 -0500 Subject: [PATCH] Add `summary` tag to all `focusableSelector` vars --- packages/@headlessui-react/src/test-utils/interactions.ts | 1 + packages/@headlessui-react/src/utils/focus-management.ts | 1 + packages/@headlessui-vue/src/test-utils/interactions.ts | 1 + packages/@headlessui-vue/src/utils/focus-management.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/@headlessui-react/src/test-utils/interactions.ts b/packages/@headlessui-react/src/test-utils/interactions.ts index 6e2c608c76..175efc5449 100644 --- a/packages/@headlessui-react/src/test-utils/interactions.ts +++ b/packages/@headlessui-react/src/test-utils/interactions.ts @@ -488,6 +488,7 @@ let focusableSelector = [ 'iframe', 'input:not([disabled])', 'select:not([disabled])', + 'summary', 'textarea:not([disabled])', ] .map( diff --git a/packages/@headlessui-react/src/utils/focus-management.ts b/packages/@headlessui-react/src/utils/focus-management.ts index 1a39a3b5c4..6e7faa934f 100644 --- a/packages/@headlessui-react/src/utils/focus-management.ts +++ b/packages/@headlessui-react/src/utils/focus-management.ts @@ -14,6 +14,7 @@ export let focusableSelector = [ 'iframe', 'input:not([disabled])', 'select:not([disabled])', + 'summary', 'textarea:not([disabled])', ] .map( diff --git a/packages/@headlessui-vue/src/test-utils/interactions.ts b/packages/@headlessui-vue/src/test-utils/interactions.ts index 58418680e9..d9501a16e3 100644 --- a/packages/@headlessui-vue/src/test-utils/interactions.ts +++ b/packages/@headlessui-vue/src/test-utils/interactions.ts @@ -467,6 +467,7 @@ let focusableSelector = [ 'iframe', 'input:not([disabled])', 'select:not([disabled])', + 'summary', 'textarea:not([disabled])', ] .map( diff --git a/packages/@headlessui-vue/src/utils/focus-management.ts b/packages/@headlessui-vue/src/utils/focus-management.ts index 7ac88984d0..f50ee5b0e3 100644 --- a/packages/@headlessui-vue/src/utils/focus-management.ts +++ b/packages/@headlessui-vue/src/utils/focus-management.ts @@ -13,6 +13,7 @@ export let focusableSelector = [ 'iframe', 'input:not([disabled])', 'select:not([disabled])', + 'summary', 'textarea:not([disabled])', ] .map(