Skip to content

Commit 93fc5c2

Browse files
(Picklist): escape all the selector string
1 parent 7182b28 commit 93fc5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/Picklist.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
304304

305305
const dropdownContainer = dropdownElRef.current;
306306
const targetElement = dropdownContainer.querySelector(
307-
`#${CSS.escape(optionIdPrefix)}-${nextFocusedValue}`
307+
`#${CSS.escape(`${optionIdPrefix}-${nextFocusedValue}`)}`
308308
);
309309

310310
if (!(targetElement instanceof HTMLElement)) {

0 commit comments

Comments
 (0)