mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 02:45:26 +01:00
Disable spell checking on <input>'s
This commit is contained in:
parent
fc0fbd6a37
commit
51a115d65a
4 changed files with 5 additions and 1 deletions
|
@ -105,6 +105,7 @@ class ColorField extends React.Component {
|
|||
{this.state.pickerOpened && picker}
|
||||
<div className="maputnik-color-swatch" style={swatchStyle}></div>
|
||||
<input
|
||||
spellCheck="false"
|
||||
className="maputnik-color"
|
||||
ref={(input) => this.colorInput = input}
|
||||
onClick={this.togglePicker.bind(this)}
|
||||
|
|
|
@ -63,7 +63,8 @@ class AutocompleteInput extends React.Component {
|
|||
style: null
|
||||
}}
|
||||
inputProps={{
|
||||
className: "maputnik-string"
|
||||
className: "maputnik-string",
|
||||
spellCheck: false
|
||||
}}
|
||||
value={this.props.value}
|
||||
items={this.props.options}
|
||||
|
|
|
@ -67,6 +67,7 @@ class NumberInput extends React.Component {
|
|||
|
||||
render() {
|
||||
return <input
|
||||
spellCheck="false"
|
||||
className="maputnik-number"
|
||||
placeholder={this.props.default}
|
||||
value={this.state.value}
|
||||
|
|
|
@ -42,6 +42,7 @@ class StringInput extends React.Component {
|
|||
|
||||
return React.createElement(tag, {
|
||||
"data-wd-key": this.props["data-wd-key"],
|
||||
spellCheck: !(tag === "input"),
|
||||
className: classes.join(" "),
|
||||
style: this.props.style,
|
||||
value: this.state.value,
|
||||
|
|
Loading…
Reference in a new issue