Skip to content

Commit 929f620

Browse files
prometheusalphahoangnh290
andauthored
fix: bug where selection layer leaves a ghost residual line below wrapped lines after deselecting (#432)
Co-authored-by: hoangnh290 <hoangnh290@viettel.com.vn>
1 parent 915af7e commit 929f620

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src-web/components/core/Editor/Editor.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
@apply bg-selection !important;
6868
}
6969

70+
/* Fix WebKit/WKWebView rendering bug where selection layer leaves a ghost
71+
residual line below wrapped lines after deselecting (CodeMirror issue #1600, #1627).
72+
The layer div must be hidden when empty to force a repaint. */
73+
.cm-selectionLayer:empty {
74+
display: none;
75+
}
76+
7077
/* Style gutters */
7178

7279
.cm-gutters {

0 commit comments

Comments
 (0)