onValidate in multiple editors
See original GitHub issueDescribe 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:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@suren-atoyan Wow. Thanks for updating exciting news! 👍
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 ononDidChangeMarkers
and it works as expected without any workarounds. Checkv4.2.2
to try it. And let’s thank @a-sam-randall for the PR 🙂