Skip to content
Snippets Groups Projects
Commit 0e8eadfd authored by Habib (ayh)'s avatar Habib (ayh)
Browse files

[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#115504

Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent aebaf168
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -11451,7 +11451,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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment