summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-04-17 14:52:57 +0000
committerqsm-odoo <qsm@odoo.com>2020-04-22 13:20:07 +0000
commita7455eaee0d02009cbb4b6ae77371d3968bccf5f (patch)
tree7e679d3ba97685ebc6c3cb14fe3c93d5dc5b56c0 /addons/web/static/src
parentba4f0679e8c413a7ebd6c54ae0b8179e8359b782 (diff)
[FIX] website: fix website menu lazy loading on hover
Small bug introduced by [1]: now the website menu is loaded on demand to avoid useless page loading. This was done when hovering the toggle which induced two problems: not loaded if the user was already over the button when the JS is fully loaded and not loaded if the dropdown was opened via the keyboard. Also, the 'mouseover' event was used instead of the 'mouseenter' and the RPC was not checked for already pending ones. Both issues could lead to have the RPC performed multiple times for no reason. [1]: https://github.com/odoo/odoo/commit/4206c1f225f5b1c54a0cdd4913e1d8224a2e7889 closes odoo/odoo#49986 X-original-commit: 7aebd7d88d1d0a0f81351b8a0e12a03964c8431a Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions