Skip to content

jsonforms and the onChange event? #152

Answered by vhemery
rsoika asked this question in All other
Discussion options

You must be logged in to vote

This is kind of a recurrent issue.
Currently, there are two approaches to workaround it it:

  • either you add a debounce (from 'lodash') to the onChange function: this will not fire only on focus loss, but at least it will fire only after a delay if you are typing fast. The bonus is that if you're changing other inputs also very fast, all your changes will be grouped in a single treatment. The drawbacks are that your changes will not be applied immediately and ... well ... that your changes will be grouped in single treatment which may complicate your treatment or not correspond to your functional needs. ;)
  • or you override all your text-based renderers to change the onChange trigger. ( http…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vhemery
Comment options

@rsoika
Comment options

@vhemery
Comment options

Answer selected by rsoika
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants