From c398ef116b9a558d2ec08a82b9b56ec1a10ffe4c Mon Sep 17 00:00:00 2001 From: map Date: Tue, 26 Nov 2024 12:28:08 +0100 Subject: [PATCH] disable autocomplete for recipient fields #6904 --- src/common/gui/base/BubbleTextField.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/gui/base/BubbleTextField.ts b/src/common/gui/base/BubbleTextField.ts index c0db741cfe48..504779cdc607 100644 --- a/src/common/gui/base/BubbleTextField.ts +++ b/src/common/gui/base/BubbleTextField.ts @@ -1,5 +1,5 @@ import m, { Children, ClassComponent, Vnode } from "mithril" -import { TextField, TextFieldType } from "./TextField.js" +import { Autocomplete, TextField, TextFieldType } from "./TextField.js" import { TranslationText } from "../../misc/LanguageViewModel" import { Keys } from "../../api/common/TutanotaConstants" import { createAsyncDropdown, DropdownChildAttrs } from "./Dropdown.js" @@ -37,6 +37,7 @@ export class BubbleTextField implements ClassComponent { oninput: attrs.onInput, helpLabel: attrs.helpLabel, type: TextFieldType.Email, + autocompleteAs: Autocomplete.off, injectionsLeft: () => { return attrs.items.map((item, idx, items) => { // We need overflow: hidden on both so that ellipsis on button works.