Skip to content
Snippets Groups Projects
Commit bdfceb8e authored by Soukéina Bojabza's avatar Soukéina Bojabza
Browse files

[FIX] website_sale: remove cart popover on language selectors in header

Since commit [1], when we are in the `/shop/cart` page and if a language
selector is in the header, a cart popover also appears when hovering the
languages. This happens because the `websiteSaleCartLink` widget
selector also targets the cart links inside the language buttons.

This commit solves this issue by excluding the language selectors from
this widget selector.

[1]: https://github.com/odoo/odoo/commit/ecefa679b224ce0e4a5a7e91ce28936321132d9c



opw-3288727

closes odoo/odoo#119685

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 56324144
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ var timeout;
publicWidget.registry.websiteSaleCartLink = publicWidget.Widget.extend({
// TODO in master: remove the second selector.
selector: '#top a[href$="/shop/cart"], #top_menu a[href$="/shop/cart"]',
selector: '#top a[href$="/shop/cart"]:not(.js_change_lang), #top_menu a[href$="/shop/cart"]:not(.js_change_lang)',
events: {
'mouseenter': '_onMouseEnter',
'mouseleave': '_onMouseLeave',
......
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