Skip to content

Commit

Permalink
Fix jumping cursor bug in Chrome 105
Browse files Browse the repository at this point in the history
Override the `-webkit-user-modify: read-write-plaintext-only` style that is added by slate to the editor element that causes a cursor jumping bug in Chrome 105.

Details at ianstormtaylor/slate#5110
  • Loading branch information
lennym committed Sep 16, 2022
1 parent 61a5b89 commit 769d8fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/scss/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
}

&:not(.readonly) {
[data-slate-editor="true"] {
-webkit-user-modify: read-write!important;
}
.image-wrapper:hover .image-overlay {
display: block;
}
Expand Down

0 comments on commit 769d8fb

Please sign in to comment.