-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CleanData after onChange between oneOf #129
Comments
This should solve the problem, input.onchange = function () { |
// Get all elements with the 'collapsible' class // Loop through each collapsible element
}); |
// Get all elements with the 'collapsible' class // Loop through each collapsible element
}); |
1 similar comment
// Get all elements with the 'collapsible' class // Loop through each collapsible element
}); |
When you select one of the list from the oneOf and move to un-select, the value is still saved in the container.
For example, select [An object] from the oneOf example and than select [].
When you getData(), the values are still stored in the container.
This kind of situation will mismatch the two function validate() and getData()
For example select [A multiple of 3] and fill with number 10.
The getData() will get the value 10 and the validate() will show error.
However, when you select [] and repeat the two function,
getData() will get the value 10 and validata() will show success.
http://brutusin.org/json-forms/#7
The text was updated successfully, but these errors were encountered: