Skip to content

Commit e193f34

Browse files
fellmannmarijnh
authored andcommitted
Fix: Broken line widget removal
Removal of line widgets is broken in 5.50.0 due to invalid classname check
1 parent 45ed413 commit e193f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/display/update_line.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function updateLineWidgets(cm, lineView, dims) {
127127
let isWidget = classTest("CodeMirror-linewidget")
128128
for (let node = lineView.node.firstChild, next; node; node = next) {
129129
next = node.nextSibling
130-
if (isWidget.test(node)) lineView.node.removeChild(node)
130+
if (isWidget.test(node.className)) lineView.node.removeChild(node)
131131
}
132132
insertLineWidgets(cm, lineView, dims)
133133
}

0 commit comments

Comments
 (0)