mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Spell check input fields (#23395)
This commit is contained in:
parent
1f9f8035e4
commit
67744ee779
@ -51,6 +51,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
|
|||||||
searchTokens: PropTypes.arrayOf(PropTypes.string),
|
searchTokens: PropTypes.arrayOf(PropTypes.string),
|
||||||
maxLength: PropTypes.number,
|
maxLength: PropTypes.number,
|
||||||
lang: PropTypes.string,
|
lang: PropTypes.string,
|
||||||
|
spellCheck: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
@ -186,7 +187,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus, className, id, maxLength, lang } = this.props;
|
const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus, className, id, maxLength, lang, spellCheck } = this.props;
|
||||||
const { suggestionsHidden } = this.state;
|
const { suggestionsHidden } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -212,6 +213,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
|
|||||||
className={className}
|
className={className}
|
||||||
maxLength={maxLength}
|
maxLength={maxLength}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
|
spellCheck={spellCheck}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
@ -242,6 +242,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|||||||
id='cw-spoiler-input'
|
id='cw-spoiler-input'
|
||||||
className='spoiler-input__input'
|
className='spoiler-input__input'
|
||||||
lang={this.props.lang}
|
lang={this.props.lang}
|
||||||
|
spellCheck
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -93,6 +93,7 @@ class Option extends React.PureComponent {
|
|||||||
maxLength={50}
|
maxLength={50}
|
||||||
value={title}
|
value={title}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
|
spellCheck
|
||||||
onChange={this.handleOptionTitleChange}
|
onChange={this.handleOptionTitleChange}
|
||||||
suggestions={this.props.suggestions}
|
suggestions={this.props.suggestions}
|
||||||
onSuggestionsFetchRequested={this.onSuggestionsFetchRequested}
|
onSuggestionsFetchRequested={this.onSuggestionsFetchRequested}
|
||||||
|
Loading…
Reference in New Issue
Block a user