Add spellcheck="false" to form fields (#6744)

In Safari on OSX, it will replace form values with autocorrected values
unless this field is present
This commit is contained in:
Patrick Hayes 2019-05-16 07:54:11 -07:00 committed by Matthew Irish
parent 359dbfc092
commit 6e14a17665
13 changed files with 19 additions and 5 deletions

View file

@ -10,6 +10,7 @@
placeholder="Default"
oninput={{perform this.fetchRole value="target.value"}}
autocomplete="off"
spellcheck="false"
name="role"
id="role"
class="input"
@ -29,6 +30,7 @@
name="jwt"
class="input"
autocomplete="off"
spellcheck="false"
data-test-jwt=true
}}
</div>

View file

@ -40,7 +40,7 @@
Token to access data
</label>
<div class="control">
{{input data-test-token-input class="input" autocomplete="off" name="token" value=token}}
{{input data-test-token-input class="input" autocomplete="off" spellcheck="false" name="token" value=token}}
</div>
<div class="field is-grouped box is-fullwidth is-bottomless">
<button data-test-unwrap-button type="submit" class="button is-primary" disabled={{not token}}>

View file

@ -176,6 +176,7 @@
data-test-input={{attr.name}}
id={{attr.name}}
autocomplete="off"
spellcheck="false"
value={{or (get model valuePath) attr.options.defaultValue}}
oninput={{action
(action "setAndBroadcast" valuePath)

View file

@ -68,6 +68,7 @@
change=(action @editActions.handleChange)
class="input"
autocomplete="off"
spellcheck="false"
}}
</div>
<div class="column info-table-row-edit">

View file

@ -9,6 +9,7 @@
class="input"
data-test-token=true
autocomplete="off"
spellcheck="false"
}}
</div>
</div>

View file

@ -7,6 +7,7 @@
name="token"
class="input"
autocomplete="off"
spellcheck="false"
data-test-token=true
}}
</div>

View file

@ -53,7 +53,7 @@
Access key
</label>
<div class="control">
{{input type="text" id="access" name="access" class="input" autocomplete="off" value=accessKey data-test-aws-input="accessKey"}}
{{input type="text" id="access" name="access" class="input" autocomplete="off" spellcheck="false" value=accessKey data-test-aws-input="accessKey"}}
</div>
</div>

View file

@ -6,6 +6,7 @@
<p class="control is-expanded">
{{input
autocomplete="off"
spellcheck="false"
data-test-secret-path="true"
id="kv-key"
class="input"

View file

@ -76,6 +76,7 @@
id="token"
name="token"
autocomplete="off"
spellcheck="false"
data-test-tools-input="wrapping-token"
}}
</div>

View file

@ -7,6 +7,7 @@
id="username"
class="input"
autocomplete="off"
spellcheck="false"
data-test-username=true
}}
</div>
@ -21,6 +22,7 @@
type="password"
class="input"
autocomplete="off"
spellcheck="false"
data-test-password=true
}}
</div>

View file

@ -24,7 +24,7 @@
Accessor
</label>
<div class="control">
{{input class="input" autocomplete="off" name="accessor" value=model.id}}
{{input class="input" autocomplete="off" spellcheck="false" name="accessor" value=model.id}}
</div>
</div>
<div class="field is-grouped box is-fullwidth is-bottomless">

View file

@ -19,6 +19,7 @@
placeholder="/ (Root)"
oninput={{perform updateNamespace value="target.value"}}
autocomplete="off"
spellcheck="false"
name="namespace"
id="namespace"
class="input"

View file

@ -136,6 +136,7 @@
data-test-key-shares="true"
class="input"
autocomplete="off"
spellcheck="false"
name="key-shares"
type="number"
step="1"
@ -158,7 +159,9 @@
<div class="control">
{{input
data-test-key-threshold="true"
class="input" autocomplete="off"
class="input"
autocomplete="off"
spellcheck="false"
name="key-threshold"
type="number"
step="1"