Skip to content

Commit

Permalink
[Select] Update description for displayEmpty propepty (#8589)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlnchv authored and oliviertassinari committed Oct 7, 2017
1 parent b07ffa9 commit aa2df16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/api/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ filename: /src/Select/Select.js
| autoWidth | boolean | false | If true, the width of the popover will automatically be set according to the items inside the menu, otherwise it will be at least the width of the select input. |
| <span style="color: #31a148">children *</span> | $ReadOnlyArray | | The option elements to populate the select with. Can be some `MenuItem` when `native` is false and `option` when `native` is true. |
| classes | Object | | Useful to extend the style applied to components. |
| displayEmpty | boolean | false | If `true`, the select selected item is display even if his value is empty. You can only use it when the `native` property is `false` (default). |
| displayEmpty | boolean | false | If `true`, the selected item is displayed even if its value is empty. You can only use it when the `native` property is `false` (default). |
| input | Element | &lt;Input /> | An `Input` element; does not have to be a material-ui specific `Input`. |
| multiple | boolean | false | If true, `value` must be an array and the menu will support multiple selections. You can only use it when the `native` property is `false` (default). |
| native | boolean | false | If `true`, the component will be using a native `select` element. |
Expand Down
2 changes: 1 addition & 1 deletion src/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export type Props = {
*/
classes?: Object,
/**
* If `true`, the select selected item is display even if his value is empty.
* If `true`, the selected item is displayed even if its value is empty.
* You can only use it when the `native` property is `false` (default).
*/
displayEmpty?: boolean,
Expand Down
2 changes: 1 addition & 1 deletion src/Select/SelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type Props = {
*/
disabled?: boolean,
/**
* If `true`, the select selected item is display even if his value is empty.
* If `true`, the selected item is displayed even if its value is empty.
* You can only use it when the `native` property is `false` (default).
*/
displayEmpty: boolean,
Expand Down
2 changes: 1 addition & 1 deletion src/Select/SelectInput.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('<SelectInput />', () => {
});

describe('prop: displayEmpty', () => {
it('should display the selected item even if his value is empty', () => {
it('should display the selected item even if its value is empty', () => {
const wrapper = shallow(
<SelectInput {...props} value="" displayEmpty>
<MenuItem value="">Ten</MenuItem>
Expand Down

0 comments on commit aa2df16

Please sign in to comment.