From d56468eb667c57481f32178cd5909b012136b1b2 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Wed, 24 Aug 2022 12:20:31 +0000 Subject: [PATCH] [FIX] web: disable browser autocompletion for AutoComplete component - Before this commit The browser autocompletion feature may conflict with the AutoComplete component. First, the browser could display its own autocompletion dropdown over our component's. Secondly, selecting an item in the browser's autocompletion dropdown simulates a keydown event with an undefined 'key' property, leading to display traceback when the AutoComplete component uses the keydown event (i.e. in getActiveHotkey). - After this commit The of our AutoComplete component now has the following attr `autocomplete="off"`. This disables the browser's autocompletion feature for this . Part-of: odoo/odoo#98840 --- addons/web/static/src/core/autocomplete/autocomplete.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/core/autocomplete/autocomplete.xml b/addons/web/static/src/core/autocomplete/autocomplete.xml index 50baa6a968a..cc5051c0c1e 100644 --- a/addons/web/static/src/core/autocomplete/autocomplete.xml +++ b/addons/web/static/src/core/autocomplete/autocomplete.xml @@ -7,6 +7,7 @@ type="text" t-att-id="props.id" class="o-autocomplete--input o_input" + autocomplete="off" t-att-placeholder="props.placeholder" t-model="state.value" t-on-blur="onInputBlur"