Skip to content

Commit

Permalink
[docs] Show default value for filterOptions prop in Autocomplete's …
Browse files Browse the repository at this point in the history
…API docs (#37230)
  • Loading branch information
ZeeshanTamboli committed May 11, 2023
1 parent 24ce885 commit 6c6382b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/pages/base/api/use-autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"type": {
"name": "(options: T[], state: FilterOptionsState<T>) => T[]",
"description": "(options: T[], state: FilterOptionsState<T>) => T[]"
}
},
"default": "createFilterOptions()"
},
"filterSelectedOptions": {
"type": { "name": "boolean", "description": "boolean" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/joy-ui/api/autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"disabled": { "type": { "name": "bool" }, "default": "false" },
"endDecorator": { "type": { "name": "node" } },
"error": { "type": { "name": "bool" }, "default": "false" },
"filterOptions": { "type": { "name": "func" } },
"filterOptions": { "type": { "name": "func" }, "default": "createFilterOptions()" },
"forcePopupIcon": {
"type": { "name": "union", "description": "'auto'<br>&#124;&nbsp;bool" },
"default": "'auto'"
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/material-ui/api/autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"disabledItemsFocusable": { "type": { "name": "bool" }, "default": "false" },
"disableListWrap": { "type": { "name": "bool" }, "default": "false" },
"disablePortal": { "type": { "name": "bool" }, "default": "false" },
"filterOptions": { "type": { "name": "func" } },
"filterOptions": { "type": { "name": "func" }, "default": "createFilterOptions()" },
"filterSelectedOptions": { "type": { "name": "bool" }, "default": "false" },
"forcePopupIcon": {
"type": { "name": "union", "description": "'auto'<br>&#124;&nbsp;bool" },
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useAutocomplete/useAutocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export interface UseAutocompleteProps<
/**
* A function that determines the filtered options to be rendered on search.
*
* @default createFilterOptions()
* @param {T[]} options The options to render.
* @param {object} state The state of the component.
* @returns {T[]}
Expand Down
1 change: 1 addition & 0 deletions packages/mui-joy/src/Autocomplete/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ Autocomplete.propTypes /* remove-proptypes */ = {
/**
* A function that determines the filtered options to be rendered on search.
*
* @default createFilterOptions()
* @param {T[]} options The options to render.
* @param {object} state The state of the component.
* @returns {T[]}
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ Autocomplete.propTypes /* remove-proptypes */ = {
/**
* A function that determines the filtered options to be rendered on search.
*
* @default createFilterOptions()
* @param {T[]} options The options to render.
* @param {object} state The state of the component.
* @returns {T[]}
Expand Down

0 comments on commit 6c6382b

Please sign in to comment.