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() {
110110 const [ value , setValue ] = React . useState ( null ) ;
111111 const [ inputValue , setInputValue ] = React . useState ( '' ) ;
112112 const [ options , setOptions ] = React . useState ( emptyOptions ) ;
113- const callbackId = React . useId ( ) . replace ( / : / g, '' ) ;
113+ const callbackId = React . useId ( ) . replace ( / [ ^ \w ] / g, '' ) ;
114114 const [ loaded , setLoaded ] = React . useState ( false ) ;
115115
116116 if ( typeof window !== 'undefined' ) {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export default function GoogleMaps() {
125125 const [ value , setValue ] = React . useState < PlaceType | null > ( null ) ;
126126 const [ inputValue , setInputValue ] = React . useState ( '' ) ;
127127 const [ options , setOptions ] = React . useState < readonly PlaceType [ ] > ( emptyOptions ) ;
128- const callbackId = React . useId ( ) . replace ( / : / g, '' ) ;
128+ const callbackId = React . useId ( ) . replace ( / [ ^ \w ] / g, '' ) ;
129129 const [ loaded , setLoaded ] = React . useState ( false ) ;
130130
131131 if ( typeof window !== 'undefined' ) {
You can’t perform that action at this time.
0 commit comments