File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
docs/data/material/components/autocomplete Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export default function GoogleMaps() {
110
110
const [ value , setValue ] = React . useState ( null ) ;
111
111
const [ inputValue , setInputValue ] = React . useState ( '' ) ;
112
112
const [ options , setOptions ] = React . useState ( emptyOptions ) ;
113
- const callbackId = React . useId ( ) . replace ( / : / g, '' ) ;
113
+ const callbackId = React . useId ( ) . replace ( / [ ^ \w ] / g, '' ) ;
114
114
const [ loaded , setLoaded ] = React . useState ( false ) ;
115
115
116
116
if ( typeof window !== 'undefined' ) {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export default function GoogleMaps() {
125
125
const [ value , setValue ] = React . useState < PlaceType | null > ( null ) ;
126
126
const [ inputValue , setInputValue ] = React . useState ( '' ) ;
127
127
const [ options , setOptions ] = React . useState < readonly PlaceType [ ] > ( emptyOptions ) ;
128
- const callbackId = React . useId ( ) . replace ( / : / g, '' ) ;
128
+ const callbackId = React . useId ( ) . replace ( / [ ^ \w ] / g, '' ) ;
129
129
const [ loaded , setLoaded ] = React . useState ( false ) ;
130
130
131
131
if ( typeof window !== 'undefined' ) {
You can’t perform that action at this time.
0 commit comments