Skip to content

Automatically set novalidate on closest form#37

Closed
andrewlock wants to merge 1 commit intohaacked:mainfrom
andrewlock:add-novalidate
Closed

Automatically set novalidate on closest form#37
andrewlock wants to merge 1 commit intohaacked:mainfrom
andrewlock:add-novalidate

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.

@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