-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Bug: Highlighting selection on active line doesn't work #406
Comments
react-codemirror/www/src/pages/theme/editor/index.tsx Lines 75 to 86 in 09521dd
@notmedia I found no errors. |
@jaywcjlove Hey! Try to select text on active line, you may see that selection is invisible there |
I fixed it. @notmedia Upgrade |
@jaywcjlove Hi! Thank you, but I found another bug here. |
I created a new selection word, lineHighlight hides Maybe I didn't understand your question. |
@jaywcjlove I took a video Screen.Recording.2022-11-18.at.16.40.00.mov |
I understand, I see the official solution is to set the transparent background color. |
@jaywcjlove But on official webpage it works as expected( Screen.Recording.2022-11-18.at.17.30.16.mov |
@notmedia using a transparent color |
@jaywcjlove Yeah, it works! Thank you :) |
I think the bug here is that if the text is selected... the activeLine class should be removed. This bug was introduced after 4.11.6 |
No, because you need to see active line in selection if you select multiple lines |
if we set activeLine to transparent to see the highlight or selection then we dont see which line is active ever |
Hi! The problem here is that when you setup selection color it doesn't highlight selection on active line. For default theme it works.
In this example I selected
'#4D4D4C',
string, you can see that match selection worked.The text was updated successfully, but these errors were encountered: