Skip to content
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

Looks we shouldn't prevent form submit on validation #184

Open
qfox opened this issue Feb 27, 2016 · 4 comments
Open

Looks we shouldn't prevent form submit on validation #184

qfox opened this issue Feb 27, 2016 · 4 comments

Comments

@qfox
Copy link
Member

qfox commented Feb 27, 2016

This prevention should be placed in ajax modifier, I guess.

@awinogradov
Copy link
Member

It is necessary;( we need validate fields before submit or diff actions. What do you mean in ajax modifier? @zxqfox can you write example?

@awinogradov
Copy link
Member

@zxqfox ping

@qfox
Copy link
Member Author

qfox commented May 16, 2016

@awinogradov pong ^.^

@qfox
Copy link
Member Author

qfox commented May 16, 2016

// in code:
field.validate().then();

// in validate:
return $.ajax('/check').then(res => res.ok === true);

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

No branches or pull requests

2 participants