From 6e30e5ccdaf256ff33cc27ede9e967feb0a8e7b4 Mon Sep 17 00:00:00 2001 From: Quentin Dreyer Date: Tue, 28 Apr 2020 19:26:35 +0200 Subject: [PATCH] [docs] Fix typo in Select type definitions (#20817) --- docs/pages/api-docs/select.md | 2 +- packages/material-ui/src/Select/Select.d.ts | 2 +- packages/material-ui/src/Select/Select.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/api-docs/select.md b/docs/pages/api-docs/select.md index 608cfe90e5c955..147cf041cdf2a9 100644 --- a/docs/pages/api-docs/select.md +++ b/docs/pages/api-docs/select.md @@ -34,7 +34,7 @@ The `MuiSelect` name can be used for providing [default props](/customization/gl | defaultValue | any | | The default element value. Use when the component is not controlled. | | displayEmpty | bool | false | If `true`, a value is displayed even if no items are selected.
In order to display a meaningful value, a function should be passed to the `renderValue` prop which returns the value to be displayed when no items are selected. You can only use it when the `native` prop is `false` (default). | | IconComponent | elementType | ArrowDropDownIcon | The icon that displays the arrow. | -| id | string | | The `id` of the wrapper element or the `select` elment when `native`. | +| id | string | | The `id` of the wrapper element or the `select` element when `native`. | | input | element | | An `Input` element; does not have to be a material-ui specific `Input`. | | inputProps | object | | [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. When `native` is `true`, the attributes are applied on the `select` element. | | label | node | | See [OutlinedInput#label](/api/outlined-input/#props) | diff --git a/packages/material-ui/src/Select/Select.d.ts b/packages/material-ui/src/Select/Select.d.ts index 00ed926b0c41ba..070ece32217c90 100644 --- a/packages/material-ui/src/Select/Select.d.ts +++ b/packages/material-ui/src/Select/Select.d.ts @@ -36,7 +36,7 @@ export interface SelectProps */ IconComponent?: React.ElementType; /** - * The `id` of the wrapper element or the `select` elment when `native`. + * The `id` of the wrapper element or the `select` element when `native`. */ id?: string; /** diff --git a/packages/material-ui/src/Select/Select.js b/packages/material-ui/src/Select/Select.js index 0b78f94eb9d922..de99909d165334 100644 --- a/packages/material-ui/src/Select/Select.js +++ b/packages/material-ui/src/Select/Select.js @@ -134,7 +134,7 @@ Select.propTypes = { */ IconComponent: PropTypes.elementType, /** - * The `id` of the wrapper element or the `select` elment when `native`. + * The `id` of the wrapper element or the `select` element when `native`. */ id: PropTypes.string, /**