[IMP] web: stop autocomplete click event

The analytic_distribution component used an extension of the AutoComplete component for 2 reasons.
1. to get access to the focus event
2. to stop propogation of the autocomplete input click (which prevented the analytic popup from functioning well)

The need for the focus event was removed, and it doesn't make sense to maintain an extension to simply stop event propogation. For this reason, the extension was removed, and the `.stop` is added directly to the AutoComplete

Part of task-3180055

closes odoo/odoo#122424

X-original-commit: ebee32b8aa994bfd3fd375f6deb10676356a5d4a
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Ayob Habib (ayh) <ayh@odoo.com>
This commit is contained in:
Habib (ayh)
2023-05-25 11:07:22 +02:00
parent db39fa70d1
commit 655e1ea63c
2 changed files with 2 additions and 2 deletions
@@ -11,7 +11,7 @@
t-att-placeholder="props.placeholder"
t-model="state.value"
t-on-blur="onInputBlur"
t-on-click="onInputClick"
t-on-click.stop="onInputClick"
t-on-change="onInputChange"
t-on-input="debouncedOnInput"
t-on-keydown="onInputKeydown"
@@ -12283,7 +12283,7 @@ QUnit.module("Views", (hooks) => {
"o_readonly_modifier"
);
await click(target.querySelector(".o_selected_row .o_field_many2one input"));
await click(target.querySelector(".o_selected_row .o_field_many2one"));
assert.strictEqual(
document.activeElement,
target.querySelector(".o_selected_row .o_field_many2one input")