Skip to content
Snippets Groups Projects
Commit 2cf2dc53 authored by abd-msyukyu-odoo's avatar abd-msyukyu-odoo
Browse files

[FIX] web_editor: fontawesome subnodes should make a node non-empty


For each node that the `insert` command inserts, the previous node is evaluated
and tested to be a `shrunk` block. If it is, it is considered "invisible" and
removed.

Prior to this commit, an element containing sub-elements with a fontawesome icon
was considered to be `isEmptyBlock==='true'` even though it is supposedly
visible as it contains that icon.

Therefore in cases where multiple nodes are inserted at once, if one of them has
only fa-icon nodes as children, that node would not have been inserted.

Task-3284580

closes odoo/odoo#119792

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 1fc75acf
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