Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[FIX] web: chrome 89 event delegation #445

Open MitchelHdz opened 3 years ago

MitchelHdz commented 3 years ago

Important

Original commit: odoo@7308274ac82c02b4d384380e6b4aeefd960d6838

This PR should be remain open in order to use as patch in our patches.txt in order to improve the filters usability.

Original PR

In windows chrome 89 (at least at version 89.0.4389.114 (29 march 2021)) clicking on a select option doesn't trigger jQuery events if they are delegated.

For example this happen when selecting a field for custom group or custom filter in the search view and when selecting a field the dropdown closes.

This happens because:

Reproduction case of the issue ^2: clicking to choose an option only logs "non-delegated click".

So for version 11.0 and 12.0 only, this commit is cherry-picking jquery's commit that is fixing the issue:

jquery/jquery@c82a668

opw-2497859 opw-2499415 opw-2499305 opw-2466991 opw-2506676

backport of #69274

closes #69304

Signed-off-by: Nicolas Lempereur (nle) nle@odoo.com

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

MitchelHdz commented 3 years ago

Hello @moylop260, could you check this? We want to use this fix as a patch on our custom build

Thanks!

moylop260 commented 3 years ago

@oscarolar please review