Skip to content

Set success if the model value is not null #321

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

Closed
wants to merge 1 commit into from

Conversation

cyaiox
Copy link

@cyaiox cyaiox commented Oct 17, 2017

Set class 'validationSucess' if the model has no errors and its initial value is not null

@icebob
Copy link
Member

icebob commented Oct 17, 2017

I think it's same as #257. But if model value is not null it doesn't mean that it's touched. For example if you load an existing record the name field won't be null, but doesn't mean it's touched.

@cyaiox
Copy link
Author

cyaiox commented Oct 17, 2017

You're right, it's same as #257 but very basic, this feature try to verify when :isNewModel="true" don't set class success to the field to keep neutral state, but if the model is filled, apply the validations and set class success or error to the field.

@cyaiox cyaiox closed this Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants