FIX: add autocomplete=off to composer textarea

FIX: add autocomplete=off to composer textarea

Somehow a plugin or some new Chrome bug is causing its heuristic to detect our textarea for the composer as a target for address autocomplete

This is likely a chrome bug but this change is very safe regardless.

diff --git a/app/assets/javascripts/discourse/templates/components/d-editor.hbs b/app/assets/javascripts/discourse/templates/components/d-editor.hbs
index 4391669..41694e0 100644
--- a/app/assets/javascripts/discourse/templates/components/d-editor.hbs
+++ b/app/assets/javascripts/discourse/templates/components/d-editor.hbs
@@ -39,7 +39,7 @@
     </div>
 
     {{conditional-loading-spinner condition=loading}}
-    {{textarea tabindex=tabindex value=value class="d-editor-input" placeholder=placeholderTranslated disabled=disabled}}
+    {{textarea autocomplete="off" tabindex=tabindex value=value class="d-editor-input" placeholder=placeholderTranslated disabled=disabled}}
     {{popup-input-tip validation=validation}}
     {{plugin-outlet name="after-d-editor" tagName="" args=outletArgs}}
   </div>

GitHub sha: 32f9fd1e

1 Like

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