Skip to content
Snippets Groups Projects
Commit 1d483ab5 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#65428

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 19ef4f1b
No related branches found
No related tags found
No related merge requests found
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