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

Sample of client-side validation of IClientModelValidator doesn't work #7894

Closed
nicholasyin opened this issue Jul 31, 2018 · 1 comment
Closed
Assignees
Labels
Pri0 Urgent priority

Comments

@nicholasyin
Copy link

nicholasyin commented Jul 31, 2018

Full file path needing fix:

aspnetcore\mvc\models\validation\sample\Views\Movies\Create.cshtml

image

Google search result from stackoverflow told me this solution, moving the 2 js functions outside of document ready function. Otherwise the client-side validation won't get fired.

@scottaddie
Copy link
Member

@nicholasyin That jQuery document.ready call can be removed. I've submitted a PR to address this.

@scottaddie scottaddie moved this from To do to In progress in Sprint 139 (July 23- Aug 10) Board View Jul 31, 2018
Sprint 139 (July 23- Aug 10) Board View automation moved this from In progress to Done Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pri0 Urgent priority
Projects
No open projects
Development

No branches or pull requests

2 participants