Skip to content

Commit cf76862

Browse files
[autocomplete] Fix Google Maps demo
1 parent 925f02b commit cf76862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/data/material/components/autocomplete/GoogleMaps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
 (0)