FIX: Use autocomplete=discourse in select-kit to disable autocomplete in Chrome (#12094)
Chrome ignores `autocomplete="off"` on input fields, but as a workaround we can supply a nonsensical value (`discourse` or anything else) to the `autocomplete` attribute and it'll disable autocomplete. Context: https://meta.discourse.org/t/-/107484/66?u=osama and https://meta.discourse.org/t/-/140884/13?u=osama.
This commit is contained in:
parent
7f16981c86
commit
277eae97e1
|
@ -3,7 +3,6 @@
|
||||||
<p>{{html-safe (i18n "admin.user.merge.prompt.description" username=username)}}</p>
|
<p>{{html-safe (i18n "admin.user.merge.prompt.description" username=username)}}</p>
|
||||||
{{email-group-user-chooser
|
{{email-group-user-chooser
|
||||||
value=targetUsername
|
value=targetUsername
|
||||||
autocomplete="discourse"
|
|
||||||
onChange=(action "updateUsername")
|
onChange=(action "updateUsername")
|
||||||
options=(hash
|
options=(hash
|
||||||
maximum=1
|
maximum=1
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{{email-group-user-chooser
|
{{email-group-user-chooser
|
||||||
id="private-message-users"
|
id="private-message-users"
|
||||||
tabindex="1"
|
tabindex="1"
|
||||||
autocomplete="discourse"
|
|
||||||
value=splitRecipients
|
value=splitRecipients
|
||||||
onChange=(action "updateRecipients")
|
onChange=(action "updateRecipients")
|
||||||
options=(hash
|
options=(hash
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
{{#if allowExistingMembers}}
|
{{#if allowExistingMembers}}
|
||||||
{{email-group-user-chooser
|
{{email-group-user-chooser
|
||||||
class="invite-user-input"
|
class="invite-user-input"
|
||||||
autocomplete="discourse"
|
|
||||||
value=invitee
|
value=invitee
|
||||||
onChange=(action "updateInvitee")
|
onChange=(action "updateInvitee")
|
||||||
options=(hash
|
options=(hash
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
<label></label>
|
<label></label>
|
||||||
{{email-group-user-chooser
|
{{email-group-user-chooser
|
||||||
value=newOwner
|
value=newOwner
|
||||||
autocomplete="discourse"
|
|
||||||
autofocus=true
|
autofocus=true
|
||||||
onChange=(action "updateNewOwner")
|
onChange=(action "updateNewOwner")
|
||||||
options=(hash
|
options=(hash
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
tabindex=-1
|
tabindex=-1
|
||||||
class="filter-input"
|
class="filter-input"
|
||||||
placeholder=placeholder
|
placeholder=placeholder
|
||||||
autocomplete="off"
|
autocomplete="discourse"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
spellcheck=false
|
spellcheck=false
|
||||||
|
|
Loading…
Reference in New Issue