-
Notifications
You must be signed in to change notification settings - Fork 159
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
View and Model out of sync when model.validate fails #178
Comments
👍 I have the same problemo |
@amakhrov @ofir-weinstock-sociomantic Just wondering, does this still happen? |
@platinumazure I haven't tried it since then, however I don't see any related changes in ModelBinder that would solve that. |
Thanks @platinumazure - It's been a long tim so i can't clearly remember. Me and my colleagues tried a similar solution i think, but eventually gave up and moved to Backbone StickIt as it anyhow more customisable for our needs. |
Hi
My model attribute has some restrictions defined in Model.validate.
I linked this attribute to the
<input>
element in the View.I tried using a binding with
modelSetOptions: {validate: true}
. It works well in terms of not changing the model when validation fails.However, the bound input element still keeps the invalid value (that didn't pass the validation).
Is there a way to handle this situation and keep the model and the input element in sync?
Thanks
Alexey
The text was updated successfully, but these errors were encountered: