mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Fix duplicate CSS created when replacing styles
When extracting the <span> CSS, a bug in refactoring meant we were not removing it from the original node.
This commit is contained in:
parent
00e3482815
commit
168033d25d
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ const replaceStyles = (
|
|||
newTreeBottom.appendChild(el);
|
||||
}
|
||||
newTreeBottom = el;
|
||||
node.style.setProperty(attr, css);
|
||||
node.style.removeProperty(attr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue