diff --git a/src/hooks/utils.js b/src/hooks/utils.js index b2c583c9..2e6f13af 100644 --- a/src/hooks/utils.js +++ b/src/hooks/utils.js @@ -92,7 +92,7 @@ const useElementIds = inputId, }) { // Avoid conditional useId call - const reactId = `downshift-${React.useId()}` + const reactId = `downshift-${CSS.escape(React.useId())}` if (!id) { id = reactId }