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
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:
chrome now sends MouseEvent.button^1 with value -1 instead of
previousvalue of 0.
jquery in odoo 12 and under is version 1.11.1 and only executes the
delegated event if the button value is 0
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:
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:
chrome now sends MouseEvent.button^1 with value -1 instead of previousvalue of 0.
jquery in odoo 12 and under is version 1.11.1 and only executes the delegated event if the button value is 0
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