UX: bypass chrome autocomplete when editing admin text fields

UX: bypass chrome autocomplete when editing admin text fields

Same issue as: 918a0ea3

off is ignored in chrome per: https://bugs.chromium.org/p/chromium/issues/detail?id=587466

diff --git a/app/assets/javascripts/admin/templates/components/admin-editable-field.hbs b/app/assets/javascripts/admin/templates/components/admin-editable-field.hbs
index 354707e..ee44e3c 100644
--- a/app/assets/javascripts/admin/templates/components/admin-editable-field.hbs
+++ b/app/assets/javascripts/admin/templates/components/admin-editable-field.hbs
@@ -1,7 +1,7 @@
 <div class='field'>{{i18n name}}</div>
 <div class='value'>
   {{#if editing}}
-    {{text-field value=buffer autofocus="autofocus"}}
+    {{text-field value=buffer autofocus="autofocus" autocomplete="discourse"}}
   {{else}}
     <span {{action "edit"}}>{{value}}</span>
   {{/if}}

GitHub sha: 1c3cbbe8

2 Likes

This commit has been mentioned on Discourse Meta. There might be relevant details there:

1 Like

The off being ignored thing enrages me each time I see it.

1 Like