-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix double caret blink in Sonoma #59
Conversation
@marijnh fyi. |
Which Safari version is that? I don't have Sonoma. Safari 17.1 doesn't seem to have this issue. |
Even with a colored, almost transparent CodeMirror cursor, I am not seeing the native cursor when |
Okay. Really odd that CSS rule matching, which is very much a browser-internal thing, would work differently for the same browser version on different OS versions. But I guess your fix is mostly harmless. Just to make absolutely sure we're not working from confused assumptions here, could you look at this page and confirm that you are getting a visible cursor when you focus the top editable element, but not in the bottom one? |
Um, yeah, I flipped the styles around, you're right. Attached patch changes this in a slightly more minimal way. We'll also want to keep a style for |
Followed up with cf5e5a9 because my initial patch was completely broken. |
Thank you! |
This issue only reproduces in macOS Sonoma (reproducible with https://codemirror.net/try/ too). Please check out the video.
double.blink.mov
It seems by setting caretColor to cm-line doesn't hide the native caret, I fixed it in my project by adding:
Feel free to close and make your fix as I don't know what's the best practice. I am just sharing an example. Thanks.