Skip to content

Commit 10020cd

Browse files
committed
Also enable selection drawing glitch workaround on desktop Safari
FIX: Work around a regression in Safari 26 that causes fragments of old selections to remain visible. Closes codemirror/dev#1627
1 parent 3c11a40 commit 10020cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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.ios) // Issue #1600
288+
if (browser.safari && browser.safari_version >= 26) // Issue #1600, 1627
289289
this.dom.style.display = this.dom.firstChild ? "" : "none"
290290
}
291291
}

0 commit comments

Comments
 (0)