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.

onchange causes many console.errors!

See original GitHub issue

Hey,

I’ve use the onchange method to validate keys with my custom regex:

this.editorOptions.onChange = () => {
      this.validateJson(this.schemaEditor.get(), 'schemaErrorMessages');
};

But whenever I use the “onchange”-Method there are many errors thrown into the console while typing. I have also tested in in your stackblitz demo there it has the same functionality.

bildschirmfoto 2018-09-10 um 11 35 20

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ps73commented, Sep 24, 2018

Fixed by using

this.editorOptions.onChange = () => {
      try {
          this.validateJson(this.schemaEditor.get(), 'schemaErrorMessages');
      } catch {}
};
0reactions
mariohmolcommented, Feb 11, 2020

this is updated to 8.3.0 … can u double check please? if still an issue please reopen

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - JavaScript : onchange function causes error/ didn't work
You have to run a function inside upload.onchange . Something like this: upload.onchange= function () { document.getElementById(img.id).src ...
Read more >
Forms - React
In HTML, form elements such as <input> , <textarea> , and <select> typically maintain their own state and update it based on user...
Read more >
How To Use console.log() in React JS - Upmostly
Console.log() is one of the most useful functions you'll ever use. It allows you to debug, create proof of concepts, and even add...
Read more >
onChange event not working after addEventListener
I made a reusable component to client side validation For specific reason I use this JavaScript code to manage or handle onChange event...
Read more >
8 common React error messages and how to address them
Learn about the most common error messages in React Development and the ... Whether you write code that causes these errors isn't important ......
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