The <Input /> and <TextField /> component's props: _spellcheck_ and _lang_ should be set on the input and textfield respectively
I would expect that spellcheck and lang props propagates down to the input or textfield elements within the respective components.
Rendered expected html looks something like this(Simplified):
```` html
Test the html in IE: https://codepen.io/doff3n/pen/xPqgGR You may need to paste the text again
This is what I used:
jsx
<Input
spellCheck={true}
lang={language}
multiline
fullWidth={true}
value={this.state.text}
onChange={this.handleChangeText}
/>
I am implementing a spellchecker where you should be able to switch between different spellchecking languages, In norway we have two different official written languages. It should also be possible to turn off the spellcheck. In chrome the value is inherited as according to spec. A solution where I could set the props directly on the input element would work for me, or that the props are inherited down to the element.
| Tech | Version |
|--------------|---------|
| Material-UI | 1.0.0-beta.17 |
| React | 16.0.0 |
| browser | IE11 |
According to the docs you have to set inputProps via inputProps https://material-ui-next.com/api/input/
<Input
inputProps={{
spellCheck: true,
lang: language
}}
multiline
fullWidth={true}
value={this.state.text}
onChange={this.handleChangeText}
/>
@sakulstra Is correct. We only automatically forward the most popular properties to the native input in order to keep the component size under control. If enough people have this use case, we can consider making it automatic.
Most helpful comment
@sakulstra Is correct. We only automatically forward the most popular properties to the native input in order to keep the component size under control. If enough people have this use case, we can consider making it automatic.