Skip to content

Commit

Permalink
[Autocomplete] Fix typo + types (#18096)
Browse files Browse the repository at this point in the history
  • Loading branch information
NaridaL authored and oliviertassinari committed Oct 29, 2019
1 parent 8944ab7 commit 3808a6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/pages/api/autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
| <span class="prop-name">disableCloseOnSelect</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the popup won't close when a value is selected. |
| <span class="prop-name">disableListWrap</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the list box in the popup will not wrap focus. |
| <span class="prop-name">disableOpenOnFocus</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the popup won't open on input focus. |
| <span class="prop-name">filterOptions</span> | <span class="prop-type">func</span> | | A filter function that determins the options that are eligible.<br><br>**Signature:**<br>`function(options: any, state: object) => boolean`<br>*options:* The options to render.<br>*state:* The state of the component. |
| <span class="prop-name">filterOptions</span> | <span class="prop-type">func</span> | | A filter function that determines the options that are eligible.<br><br>**Signature:**<br>`function(options: undefined, state: object) => undefined`<br>*options:* The options to render.<br>*state:* The state of the component. |
| <span class="prop-name">filterSelectedOptions</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, hide the selected options from the list box. |
| <span class="prop-name">freeSolo</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options. |
| <span class="prop-name">getOptionDisabled</span> | <span class="prop-type">func</span> | | Used to determine the disabled state for a given option. |
Expand Down
6 changes: 3 additions & 3 deletions packages/material-ui-lab/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
/**
Expand Down

0 comments on commit 3808a6b

Please sign in to comment.