Closed steph643 closed 9 years ago
Thanks for the workaround. I will fix this ASAP.
Just want to confirm--does this happen when you've made changes to the form elements that passed validation?
I cannot reproduce the issue! Please let me check.
Got it: the issue occurs when I change the value programatically (using $element.val(newValue)
). The issue does not occur when changing the value manually (normal case).
My mistake is that I expected the package to behave the same way when changing values manually and programatically. Sorry for that.
I will add a feature request for a function to change values programatically :-)
When you register an element, the validationEvent is what triggers the change. So you can probably pull it off just by triggering that event on the element with the ".reactive-element" class with jQuery after the update.
Your suggestion works like a charm, thanks a lot!
When using
data=
to setup initial form values,this
of theaction
callback contains those initial values instead of the new validated values.This issue does not occur when not using
data=
.A workaround is to use the
els
argument to get the value from the DOM: