Skip to content

Commit

Permalink
[docs] Grammar correction in autocomplete API (#25910)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruber76 authored Apr 24, 2021
1 parent bea7769 commit 47c8b0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/translations/api-docs/autocomplete/autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"getOptionSelected": "Used to determine if an option is selected, considering the current value(s). Uses strict equality by default. ⚠️ Both arguments need to be handled, an option can only match with one value.<br><br><strong>Signature:</strong><br><code>function(option: T, value: T) =&gt; boolean</code><br><em>option:</em> The option to test.<br><em>value:</em> The value to test against.",
"groupBy": "If provided, the options will be grouped under the returned string. The groupBy value is also used as the text for group headings when <code>renderGroup</code> is not provided.<br><br><strong>Signature:</strong><br><code>function(options: T) =&gt; string</code><br><em>options:</em> The options to group.",
"handleHomeEndKeys": "If <code>true</code>, the component handles the &quot;Home&quot; and &quot;End&quot; keys when the popup is open. It should move focus to the first option and last option, respectively.",
"id": "This prop is used to help implement the accessibility logic. If you don&#39;t provide this prop. It falls back to a randomly generated id.",
"id": "This prop is used to help implement the accessibility logic. If you don&#39;t provide an id it will fall back to a randomly generated one.",
"includeInputInList": "If <code>true</code>, the highlight can move to the input.",
"inputValue": "The input value.",
"limitTags": "The maximum number of tags that will be visible when not focused. Set <code>-1</code> to disable the limit.",
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ Autocomplete.propTypes /* remove-proptypes */ = {
handleHomeEndKeys: PropTypes.bool,
/**
* This prop is used to help implement the accessibility logic.
* If you don't provide this prop. It falls back to a randomly generated id.
* If you don't provide an id it will fall back to a randomly generated one.
*/
id: PropTypes.string,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export interface UseAutocompleteProps<
handleHomeEndKeys?: boolean;
/**
* This prop is used to help implement the accessibility logic.
* If you don't provide this prop. It falls back to a randomly generated id.
* If you don't provide an id it will fall back to a randomly generated one.
*/
id?: string;
/**
Expand Down

0 comments on commit 47c8b0b

Please sign in to comment.