You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation will still occur because the form is created without novalidate attribute. Solid will attempt to set the .novalidate property but this is not valid (it should be .noValidate).
Expected behavior
I'd expect one of the following to happen:
Solid sets the novalidate attribute: <form novalidate> or <form novalidate="">
Solid translates the novalidate attribute into the noValidate property
Solid complains at runtime that setting a boolean attribute for novalidate isn't allowed.
The Solid JSX TypeScript type defs refuse to allow this.
Screenshots or Videos
No response
Platform
OS: macOS
Browser: Chrome
Version: 131.0
Additional context
No response
The text was updated successfully, but these errors were encountered:
Yeah I suspect this may be the result of missing property addition and maybe some newer boolean logic up against each other. I would have expected all of the above to work and only novalidate={false} to be weird if it were boolean attribute and not identified. So there is some gap that has been introduced somewhere perhaps since our default is to make things attributes so I'd expect novalidate="true" to be the output if it wasn't being handled as a property.
Describe the bug
There are three ways to enable the
novalidate
behavior on a form:<form noValidate={true}>
(this sets the property)<form novalidate={true}>
(this sets an attribute to true)<form novalidate>
(this sets an attribute via the template)1 and 3 work as expected and disable form validation. 2 does not.
Your Example Website or App
https://playground.solidjs.com/anonymous/150a858a-e788-44db-95c5-f45abd7cb9ea
Steps to Reproduce the Bug or Issue
Add
novalidate={true}
to a form.Validation will still occur because the form is created without
novalidate
attribute. Solid will attempt to set the.novalidate
property but this is not valid (it should be.noValidate
).Expected behavior
I'd expect one of the following to happen:
novalidate
attribute:<form novalidate>
or<form novalidate="">
novalidate
attribute into thenoValidate
propertynovalidate
isn't allowed.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: