You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please correct me if I'm wrong but if you always have values passed down when you get setAllValues can this not be implemented 100% in userland? ie by wrapping setValues
On Wed, Mar 22, 2017 at 6:53 AM Shane Keulen ***@***.***> wrote:
Please correct me if I'm wrong but if you always have values passed down
when you get setAllValues can this not be implemented 100% in userland?
ie by wrapping setValues
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUmCW8RPQckzTIY8hCsD0Hd3rlMXpu5ks5roRnDgaJpZM4Mky3P>
.
If we want to set value to multiple fields at once, we have to use
setValues
.Example:
Use
setAllValues
will set/replace all form values but it makes other attributes which are not insetAllValues
arguments is undefined.We can create an object which merges values from form's value with new values as:
IMHO, it's better to have a new method
setValues
orsetMultipleValues
which doesn't override others fields' value.Please let me know your opinion.
The text was updated successfully, but these errors were encountered: