diff --git a/docs/pages/api/autocomplete.md b/docs/pages/api/autocomplete.md index ec456d0b16e2d6..acd421b3d04782 100644 --- a/docs/pages/api/autocomplete.md +++ b/docs/pages/api/autocomplete.md @@ -35,7 +35,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | disableCloseOnSelect | bool | false | If `true`, the popup won't close when a value is selected. | | disableListWrap | bool | false | If `true`, the list box in the popup will not wrap focus. | | disableOpenOnFocus | bool | false | If `true`, the popup won't open on input focus. | -| filterOptions | func | | A filter function that determins the options that are eligible.

**Signature:**
`function(options: any, state: object) => boolean`
*options:* The options to render.
*state:* The state of the component. | +| filterOptions | func | | A filter function that determines the options that are eligible.

**Signature:**
`function(options: undefined, state: object) => undefined`
*options:* The options to render.
*state:* The state of the component. | | filterSelectedOptions | bool | false | If `true`, hide the selected options from the list box. | | freeSolo | bool | false | If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options. | | getOptionDisabled | func | | Used to determine the disabled state for a given option. | diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js index 4c6aa5260c549f..84d7097cb4942a 100644 --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js @@ -419,11 +419,11 @@ Autocomplete.propTypes = { */ disableOpenOnFocus: PropTypes.bool, /** - * A filter function that determins the options that are eligible. + * A filter function that determines the options that are eligible. * - * @param {any} options The options to render. + * @param {any[]} options The options to render. * @param {object} state The state of the component. - * @returns {boolean} + * @returns {any[]} */ filterOptions: PropTypes.func, /** diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts index c6890e46f130e3..5f522c5ab0bf40 100644 --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts @@ -66,11 +66,11 @@ export interface UseAutocompleteProps { */ disableOpenOnFocus?: boolean; /** - * A filter function that determins the options that are eligible. + * A filter function that determines the options that are eligible. * - * @param {any} options The options to render. + * @param {any[]} options The options to render. * @param {object} state The state of the component. - * @returns {boolean} + * @returns {any[]} */ filterOptions?: (options: any[], state: FilterOptionsState) => any[]; /**