Skip to content
Snippets Groups Projects
Commit fc720940 authored by Benoit Socias's avatar Benoit Socias
Browse files

[FIX] web_editor: deselect snippet when clicking on empty content


When clicking on the pseudo-block that appears in an empty page, the
snippet icons bounce. However, if a snippet is selected it is not
deselected and the icons are not visible.
This is a problem after the previous commit because if an item is
selected within an "On Hover" mega menu when this pseudo block is
clicked, the mega menu is closed, but the snippet remains selected.

This commit removes the snippet selection before bouncing the icons to
avoid this problem.

Steps to reproduce:
- Add a mega menu.
- Set "Sub Menus: On Hover".
- Select an element inside the mega menu.
- Click on the "DRAG BUILDING BLOCKS HERE" pseudo-block.

=> The mega menu was closed, but its inner element remained selected.

task-2825376

closes odoo/odoo#110258

Signed-off-by: default avatarVray Benjamin (bvr) <bvr@odoo.com>
parent 4a1de8b6
No related branches found
No related tags found
Loading
Loading
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