Skip to content
Snippets Groups Projects
Commit 1d8077c3 authored by xO-Tx's avatar xO-Tx Committed by qsm-odoo
Browse files

[FIX] web_editor: fix parent element selection


When a block is removed, the parent will be activated.
If the parent element is empty and removable:

1) It will be removed too.
2) In '_activateSnippet' method, we look for the right element to
   be selected using the block's parent (removed from the DOM...).

The goal of this commit is to fix this behaviour by computing the
selected element before parent removal.

task-2431506

closes odoo/odoo#67354

X-original-commit: 1d483ab5
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent cda0b9c9
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment