Skip to content

Commit 8b7ae3f

Browse files
Update packages/@react-aria/focus/src/FocusScope.tsx
Co-authored-by: Devon Govett <[email protected]>
1 parent f8155bf commit 8b7ae3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-aria/focus/src/FocusScope.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function isTabbableRadio(element: HTMLInputElement) {
301301
}
302302
let radios: HTMLInputElement[] = [];
303303
if (!element.form) {
304-
radios = ([...getOwnerDocument(element).querySelectorAll(`input[type="radio"][name="${element.name}"]`)] as HTMLInputElement[]).filter(radio => !radio.form);
304+
radios = ([...getOwnerDocument(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)] as HTMLInputElement[]).filter(radio => !radio.form);
305305
} else {
306306
let radioList = element.form?.elements?.namedItem(element.name) as RadioNodeList;
307307
radios = [...(radioList ?? [])] as HTMLInputElement[];

0 commit comments

Comments
 (0)