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

Automatically set novalidate on closest form #37

Closed
wants to merge 1 commit into from

Conversation

andrewlock
Copy link
Contributor

A relatively naive fix, but I think it should work 🤔 Need to update the defs etc, but wasn't sure how much of that happens in CI etc

Also, I don't have node installed, so yolo'd this before I head to bed - I'll follow up if/when it needs more work 😅

Fixes #35

Copy link
Owner

@haacked haacked left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting a PR! I think the code you submitted is a good start, but can probably be simplified by relying on the result of scan.

I think we may want to make options a property of this so w we don't need to pass addNoValidate all the way through. It seems silly that every option we add will have to be passed through.

src/index.ts Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
@haacked
Copy link
Owner

haacked commented Nov 2, 2023

Closing as #68 includes this.

@haacked haacked closed this Nov 2, 2023
@dahlbyk
Copy link
Collaborator

dahlbyk commented Nov 4, 2023

Shipped as a service option in https://github.com/haacked/aspnet-client-validation/releases/tag/v0.9.2

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.

Consider adding novalidate to forms to disable Constraints API
3 participants