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.

onValidate in multiple editors

See original GitHub issue

Describe the bug Hello, I have been using two editors with the same language setting and so on. If there are multiple editor components and one of them has broken input, only onValidate of the last component is executed and it has the other component’s markers values.

To Reproduce CodeSandbox: https://codesandbox.io/s/onvalidate-forked-tpxst?file=/src/App.js:123-130

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
sujinleemecommented, Aug 10, 2021

@suren-atoyan Wow. Thanks for updating exciting news! 👍

3reactions
suren-atoyancommented, Aug 9, 2021

Hello everyone @sujinleeme @Etheryte @jerryrat2016

onDidChangeMarkers method was introduced on the v0.22.0 (29.01.2021) that overcomes all obstacles we had before to make this feature work stable. Now, onValidate is based on onDidChangeMarkers and it works as expected without any workarounds. Check v4.2.2 to try it. And let’s thank @a-sam-randall for the PR 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataGrid - How to validate multiple editors after a value is ...
In my edit form I have 5 checkboxes. The user must select at least one for the form to be validated. Each checkboxe...
Read more >
MonoBehaviour.OnValidate() - Scripting API - Unity - Manual
Editor -only function that Unity calls when the script is loaded or a value changes in the Inspector. Use this to perform an...
Read more >
How does OnValidate() Work !? - Unity Forum
After many hours with Debug. ... OnValidate is for Editor time to check the values when someone change them in the inspector. Nothing...
Read more >
validating multiple TinyMCE Editor - jquery - Stack Overflow
getContent(); // get the content $('#description').val(content); // put it in the textarea });. But now i am supposed to validate all editors, any...
Read more >
Validate Unity Inspector Input with OnValidate - Quick Tip
Unity provides a funtion that allows your MonoBehaviors to be alerted when values are changed on it in the inspector. The ` OnValidate...
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