diff options
| author | Romain Estievenart <res@odoo.com> | 2020-10-12 09:04:34 +0000 |
|---|---|---|
| committer | Romain Estievenart <res@odoo.com> | 2020-10-28 15:02:27 +0000 |
| commit | 7f1bcc8ceb78729725f65585e923b08f94bf75b5 (patch) | |
| tree | 14c04a427dd8b90fcc7ab5a46cebe733ceb2585a /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | dda0bb499b0964b3a1750431255ecfef6cc9eb46 (diff) | |
[FIX] web: DropdownMenu autoclose behavior should match Bootstrap
Before this commit, with an opened DropdownMenu component, when the user
clicks on a Bootstrap's dropdown the DropdownMenu doesn't close.
This issue is due to a conflict between the global click listener
registered to close the DropdownMenu and the listener registered by the
Bootstrap dropdown:
the last one prevents the event from bubbling up to the `window` element
and be handled by the first one.
This commit fixes it by enabling the `capture` flag on the DropdownMenu
global click listener, giving it the opportunity to handling it properly
and close the DropdownMenu.
Note: this commit also fixes an issue when a dialog is opened from a
DropdownMenu (like the favorite's delete action) and prevents it from
closing in the background (e.g. when the dialog is still opened).
opw-1879566
closes odoo/odoo#60909
X-original-commit: e4f87710e16357f24f388159a7b1e82eccda598a
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
