You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] html_editor: prevent header content loss on type change
Problem:
When trying to change the header type of "All products" in the
"/shop" page on Website, the title disappears.
Cause:
The title is `h1[data-oe-field]`. When we update it, we replace the
node with a new header node. This triggers `handleMutations` with
both the removed node and the new node. The old removed node with no
content is processed in `normalizeHandler`, which causes removal of
the content from the new node as well.
Solution:
We disable `setTag` on `o_editable`.
Steps to reproduce:
1. Enter Website.
2. Go to the cart and select the header "Order Summary".
3. Attempt to change the font style (Header 1, Header 2, etc.).
→ The header disappears.
opw-5106712
closesodoo#233286
X-original-commit: a10217b
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Walid Sahli (wasa) <wasa@odoo.com>
0 commit comments