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 f8155bf commit 8b7ae3fCopy full SHA for 8b7ae3f
packages/@react-aria/focus/src/FocusScope.tsx
@@ -301,7 +301,7 @@ function isTabbableRadio(element: HTMLInputElement) {
301
}
302
let radios: HTMLInputElement[] = [];
303
if (!element.form) {
304
- radios = ([...getOwnerDocument(element).querySelectorAll(`input[type="radio"][name="${element.name}"]`)] as HTMLInputElement[]).filter(radio => !radio.form);
+ radios = ([...getOwnerDocument(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)] as HTMLInputElement[]).filter(radio => !radio.form);
305
} else {
306
let radioList = element.form?.elements?.namedItem(element.name) as RadioNodeList;
307
radios = [...(radioList ?? [])] as HTMLInputElement[];
0 commit comments