Skip to content

Commit 8119439

Browse files
committed
fix(content): normalise host after unwrap
1 parent 5adf440 commit 8119439

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/highlight-support.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const highlightSupport = {
6969
const elems = editableHost.querySelectorAll(`[data-word-id="${highlightId}"]`)
7070
for (const elem of elems) {
7171
content.unwrap(elem)
72+
editableHost.normalize()
7273
if (dispatcher) dispatcher.notify('change', editableHost)
7374
}
7475
},

0 commit comments

Comments
 (0)