FEATURE: add missing autocomplete suppressions

FEATURE: add missing autocomplete suppressions

Following 1f4ace4f add a couple more autocomplete suppressions (in polls and invite ui)

diff --git a/app/assets/javascripts/discourse/templates/components/invite-panel.hbs b/app/assets/javascripts/discourse/templates/components/invite-panel.hbs
index 3b14b5b..10275eb 100644
--- a/app/assets/javascripts/discourse/templates/components/invite-panel.hbs
+++ b/app/assets/javascripts/discourse/templates/components/invite-panel.hbs
@@ -30,7 +30,7 @@
           usernames=emailOrUsername
           placeholderKey=placeholderKey
           class="invite-user-input"
-          autocomplete="off"}}
+          autocomplete="discourse"}}
       {{else}}
         {{text-field
           class="email-or-username-input"
diff --git a/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs b/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs
index 142f7f3..d4cd3cd 100644
--- a/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs
+++ b/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs
@@ -52,7 +52,7 @@
     {{#unless isNumber}}
       <div class="input-group poll-textarea">
         <label>{{i18n 'poll.ui_builder.poll_options.label'}}</label>
-        {{textarea value=pollOptions}}
+        {{textarea value=pollOptions autocomplete="discourse"}}
         {{input-tip validation=minNumOfOptionsValidation}}
       </div>
     {{/unless}}

GitHub sha: 79841cf7

2 Likes