Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove titles prop type from description
Browse files Browse the repository at this point in the history
soltanloo committed Nov 6, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 01bc65e commit 0eec5e4
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/pages/api/autocomplete.md
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
| <span class="prop-name required">renderInput&nbsp;*</span> | <span class="prop-type">func</span> | | Render the input.<br><br>**Signature:**<br>`function(params: object) => ReactNode`<br>*params:* null |
| <span class="prop-name">renderOption</span> | <span class="prop-type">func</span> | | Render the option, use `getOptionLabel` by default.<br><br>**Signature:**<br>`function(option: any, state: object) => ReactNode`<br>*option:* The option to render.<br>*state:* The state of the component. |
| <span class="prop-name">renderTags</span> | <span class="prop-type">func</span> | | Render the selected value.<br><br>**Signature:**<br>`function(value: any) => ReactNode`<br>*value:* The `value` provided to the component. |
| <span class="prop-name">titles</span> | <span class="prop-type">{ clearPopup: string, closePopup: string, openPopup: string }</span> | <span class="prop-default">{ openPopup: 'Open popup', closePopup: 'Close popup', clearPopup: 'Clear',}</span> | Object of titles to display when hovering the arrow or clear buttons. |
| <span class="prop-name">titles</span> | <span class="prop-type">{ clearPopup: string, closePopup: string, openPopup: string }</span> | <span class="prop-default">{ openPopup: 'Open popup', closePopup: 'Close popup', clearPopup: 'Clear',}</span> | Titles to display when hovering the arrow or clear buttons. |
| <span class="prop-name">value</span> | <span class="prop-type">any</span> | | The input value. |

The `ref` is forwarded to the root element.
Original file line number Diff line number Diff line change
@@ -102,7 +102,7 @@ export interface AutocompleteProps
*/
renderTags?: (value: any, state: RenderValueState) => React.ReactNode;
/**
* Object of titles to display when hovering the arrow or clear buttons.
* Titles to display when hovering the arrow or clear buttons.
*/
titles?: {
openPopup: string;
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
@@ -560,7 +560,7 @@ Autocomplete.propTypes = {
*/
renderTags: PropTypes.func,
/**
* Object of titles to display when hovering the arrow or clear buttons.
* Titles to display when hovering the arrow or clear buttons.
*/
titles: PropTypes.shape({
clearPopup: PropTypes.string.isRequired,

0 comments on commit 0eec5e4

Please sign in to comment.