question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ControlledEditor starts off with all text highlighted

See original GitHub issue

Describe the bug I am using the ControlledEditor as part of a larger page. When opening the page, I have to scroll down to see the monaco editor, and when I get to it, all the text starts off highlighted. This is not so much a functional issue as much as just being a little annoying, but I’d still like to figure out why it’s happening.

To Reproduce

My code looks like

<ControlledEditor
     height={props.height}
     width={props.width}
     value={props.value}
     onChange={props.onChange}
     language="mylanguage"
     theme="dark"
/>

It’s not a problem with any of my custom language settings I’ve created bc I can comment those out and the issue remains. In fact I can remove everything except for the height, width, and value and I still have the issue. Has anyone else run into this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joshuachengcommented, Dec 16, 2020

@albingroen @suren-atoyan looks good, thanks for all your help!

1reaction
suren-atoyancommented, Dec 15, 2020

Hello guys

I’ve already fixed the issue. Please check the new version v3.7.3 (@albingroen it is not the one with multi-file editor API).

You can check @albingroen’s codesandbox demo with the updated version of the package.

@joshuacheng could you please check the new version in your app?

Thank you for your support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

I cannot stop text from getting highlighted - Microsoft Community
i will select text that i want to highlight, highlight it, then i turn highlighting off, but it keeps highlighting even though the...
Read more >
Why is Text Highlighted in Grey in my Word Document ...
Question: Why is text still highlighted in grey after merging? ... Use Alt+F9 again to toggle off the display of the field codes....
Read more >
How to turn off Auto highlight text in Vim editor? [closed]
Looks like you have the "highlight search" flag on and the last search was for typedef . You can turn the flag off...
Read more >
How to Apply, Remove, and Find Highlighted Text in Word
Repeat this step with any other sections of text you want to highlight. When you're done, press the arrow next to the Text...
Read more >
Why is my InDesign text highlighted in blue?
toggle style highlighting to control text highlighted in blue in InDesign. When that is on, InDesign highlights any text that has local formatting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found