diff --git a/docs/data/material/components/autocomplete/GoogleMaps.js b/docs/data/material/components/autocomplete/GoogleMaps.js index 4d9029a1e77385..3ac12ffb4f8d12 100644 --- a/docs/data/material/components/autocomplete/GoogleMaps.js +++ b/docs/data/material/components/autocomplete/GoogleMaps.js @@ -96,7 +96,9 @@ export default function GoogleMaps() { getOptionLabel={(option) => typeof option === 'string' ? option : option.description } - filterOptions={(x) => x} + filterOptions={(_options) => + _options.filter((option) => !!option.structured_formatting) + } options={options} autoComplete includeInputInList diff --git a/docs/data/material/components/autocomplete/GoogleMaps.tsx b/docs/data/material/components/autocomplete/GoogleMaps.tsx index 900033cb7fce18..ef5e8aefe3b0ed 100644 --- a/docs/data/material/components/autocomplete/GoogleMaps.tsx +++ b/docs/data/material/components/autocomplete/GoogleMaps.tsx @@ -120,7 +120,9 @@ export default function GoogleMaps() { getOptionLabel={(option) => typeof option === 'string' ? option : option.description } - filterOptions={(x) => x} + filterOptions={(_options) => + _options.filter((option) => !!option.structured_formatting) + } options={options} autoComplete includeInputInList