0
Fork 0
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:
Neil Jenkins 2023-02-01 13:52:11 +11:00
parent 00e3482815
commit 168033d25d

View file

@ -89,7 +89,7 @@ const replaceStyles = (
newTreeBottom.appendChild(el);
}
newTreeBottom = el;
node.style.setProperty(attr, css);
node.style.removeProperty(attr);
}
}