From aa2df16ca763ad4ba73c1b1bbb7b1cf8fcd2b0e4 Mon Sep 17 00:00:00 2001 From: Georgy Malanichev Date: Sun, 8 Oct 2017 11:07:56 +1300 Subject: [PATCH] [Select] Update description for displayEmpty propepty (#8589) --- pages/api/select.md | 2 +- src/Select/Select.js | 2 +- src/Select/SelectInput.js | 2 +- src/Select/SelectInput.spec.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/api/select.md b/pages/api/select.md index d46a1a2f351121..3b25ab95c32eae 100644 --- a/pages/api/select.md +++ b/pages/api/select.md @@ -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. | | children * | $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 | <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. | diff --git a/src/Select/Select.js b/src/Select/Select.js index c48308d1bad7e5..b5f5e69725e386 100644 --- a/src/Select/Select.js +++ b/src/Select/Select.js @@ -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, diff --git a/src/Select/SelectInput.js b/src/Select/SelectInput.js index 12a3739b080934..a5d3b51455d2d2 100644 --- a/src/Select/SelectInput.js +++ b/src/Select/SelectInput.js @@ -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, diff --git a/src/Select/SelectInput.spec.js b/src/Select/SelectInput.spec.js index 7f84badb971ab6..91acd1388a9c50 100644 --- a/src/Select/SelectInput.spec.js +++ b/src/Select/SelectInput.spec.js @@ -79,7 +79,7 @@ describe('', () => { }); 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( Ten