validation-related props not preventing form submission #8647
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
Calcite (dev)
Issues logged by Calcite developers.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p1 - need for current milestone
User set priority impact status of p1 - need for current milestone
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
Check existing issues
Actual Behavior
pattern
,minLength
and other related props should prevent form submission.Expected Behavior
Form submit is prevented when the component is in an invalid state.
Reproduction Sample
https://codepen.io/jcfranco/pen/wvOPvEa
Reproduction Steps
Note that the alert message is displayed due to the submit event not being blocked.
Reproduction Version
2.3.0
Relevant Info
The internal hidden input isn't getting all of the validation-related props set on it on initialization and some are missing (see https://github.com/Esri/calcite-design-system/blob/main/packages/calcite-components/src/components/input/input.tsx#L886-L903).
Regression?
No response
Priority impact
p1 - need for current milestone
Impact
This impacts all form-related use cases that involve validation.
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: