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>
|
||||
{{email-group-user-chooser
|
||||
value=targetUsername
|
||||
autocomplete="discourse"
|
||||
onChange=(action "updateUsername")
|
||||
options=(hash
|
||||
maximum=1
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{{email-group-user-chooser
|
||||
id="private-message-users"
|
||||
tabindex="1"
|
||||
autocomplete="discourse"
|
||||
value=splitRecipients
|
||||
onChange=(action "updateRecipients")
|
||||
options=(hash
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
{{#if allowExistingMembers}}
|
||||
{{email-group-user-chooser
|
||||
class="invite-user-input"
|
||||
autocomplete="discourse"
|
||||
value=invitee
|
||||
onChange=(action "updateInvitee")
|
||||
options=(hash
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
<label></label>
|
||||
{{email-group-user-chooser
|
||||
value=newOwner
|
||||
autocomplete="discourse"
|
||||
autofocus=true
|
||||
onChange=(action "updateNewOwner")
|
||||
options=(hash
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
tabindex=-1
|
||||
class="filter-input"
|
||||
placeholder=placeholder
|
||||
autocomplete="off"
|
||||
autocomplete="discourse"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"
|
||||
spellcheck=false
|
||||
|
|
Loading…
Reference in New Issue