Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit c834ebf

Browse files
committed
Enable the workaround for ghost selections in all forms of Webkit
FIX: Expand the workaround for the Webkit bug that causes nonexistent selections to stay visible to be active on non-Safari Webkit browsers. Closes codemirror/dev#1686
1 parent 49d72c4 commit c834ebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class LayerView {
285285
old = next
286286
}
287287
this.drawn = markers
288-
if (browser.safari && browser.safari_version >= 26) // Issue #1600, 1627
288+
if (browser.webkit) // Issue #1600, 1627, 1686
289289
this.dom.style.display = this.dom.firstChild ? "" : "none"
290290
}
291291
}

0 commit comments

Comments
 (0)