diff --git a/docs/src/pages/components/autocomplete/DisabledOptions.js b/docs/src/pages/components/autocomplete/DisabledOptions.js index 82dba85b2c0c5d..268e2e28969452 100644 --- a/docs/src/pages/components/autocomplete/DisabledOptions.js +++ b/docs/src/pages/components/autocomplete/DisabledOptions.js @@ -11,16 +11,7 @@ export default function DisabledOptions() { getOptionDisabled={option => option === timeSlots[0] || option === timeSlots[2]} style={{ width: 300 }} renderInput={params => ( - + )} /> ); diff --git a/docs/src/pages/components/autocomplete/DisabledOptions.tsx b/docs/src/pages/components/autocomplete/DisabledOptions.tsx index ad90d5c6501a4a..34256ea6dbfe21 100644 --- a/docs/src/pages/components/autocomplete/DisabledOptions.tsx +++ b/docs/src/pages/components/autocomplete/DisabledOptions.tsx @@ -11,16 +11,7 @@ export default function DisabledOptions() { getOptionDisabled={(option: TimeSlot) => option === timeSlots[0] || option === timeSlots[2]} style={{ width: 300 }} renderInput={params => ( - + )} /> ); diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js index b5db3dbffc0997..a7e37d17c6901e 100644 --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -732,7 +732,7 @@ export default function useAutocomplete(props) { 'aria-autocomplete': autoComplete ? 'both' : 'list', 'aria-controls': popupOpen ? `${id}-popup` : null, // Disable browser's suggestion that might overlap with the popup. - // (autocomplete and autofill) + // Handle autocomplete but not autofill. autoComplete: 'off', ref: inputRef, autoCapitalize: 'none',