Skip to content

Commit

Permalink
Add disableOptionEqualToValueWarning to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz-jazurek committed Feb 22, 2023
1 parent 17c7ce5 commit 9c19a9a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/material-ui/api/autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"disabled": { "type": { "name": "bool" }, "default": "false" },
"disabledItemsFocusable": { "type": { "name": "bool" }, "default": "false" },
"disableListWrap": { "type": { "name": "bool" }, "default": "false" },
"disableOptionEqualToValueWarning": { "type": { "name": "bool" }, "default": "false" },
"disablePortal": { "type": { "name": "bool" }, "default": "false" },
"filterOptions": { "type": { "name": "func" } },
"filterSelectedOptions": { "type": { "name": "bool" }, "default": "false" },
Expand Down
1 change: 1 addition & 0 deletions docs/translations/api-docs/autocomplete/autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"disabled": "If <code>true</code>, the component is disabled.",
"disabledItemsFocusable": "If <code>true</code>, will allow focus on disabled items.",
"disableListWrap": "If <code>true</code>, the list box in the popup will not wrap focus.",
"disableOptionEqualToValueWarning": "Disable warning when options are not equal to value",
"disablePortal": "If <code>true</code>, the <code>Popper</code> content will be under the DOM hierarchy of the parent component.",
"filterOptions": "A function that determines the filtered options to be rendered on search.<br><br><strong>Signature:</strong><br><code>function(options: Array&lt;T&gt;, state: object) =&gt; Array&lt;T&gt;</code><br><em>options:</em> The options to render.<br><em>state:</em> The state of the component.",
"filterSelectedOptions": "If <code>true</code>, hide the selected options from the list box.",
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 @@ -261,6 +261,7 @@ const excludeUseAutocompleteParams = <
disableCloseOnSelect,
disabledItemsFocusable,
disableListWrap,
disableOptionEqualToValueWarning,
filterSelectedOptions,
handleHomeEndKeys,
includeInputInList,
Expand Down
6 changes: 6 additions & 0 deletions packages/mui-material/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ const Autocomplete = React.forwardRef(function Autocomplete(inProps, ref) {
disabled = false,
disabledItemsFocusable = false,
disableListWrap = false,
disableOptionEqualToValueWarning = false,
disablePortal = false,
filterOptions,
filterSelectedOptions = false,
Expand Down Expand Up @@ -807,6 +808,11 @@ Autocomplete.propTypes /* remove-proptypes */ = {
* @default false
*/
disableListWrap: PropTypes.bool,
/**
* Disable warning when options are not equal to value
* @default false
*/
disableOptionEqualToValueWarning: PropTypes.bool,
/**
* If `true`, the `Popper` content will be under the DOM hierarchy of the parent component.
* @default false
Expand Down

0 comments on commit 9c19a9a

Please sign in to comment.