-
Couldn't load subscription status.
- Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Component
FormItem@v0.25.0
Issue
When attribute isRequired is set to true the form item validation should be enabled. Unfortunately, this does not happen and it is necessary to explicitly set rules property to contain { "required": true } object to actually obtain the expected behavior.
Expected behavior
When attribute isRequired is set to true the form item validation is enabled and triggered upon form submission.
Replicate
- Open the Storybook and search for the FormItem Required example
- Clear the input element value and try to submit the form
- As shown in the video, submitting an empty input still activate the callback and no validation is triggered
- Upon adding
[{"required": true}]in therulesproperty the validation is triggered and it prevents to submit an empty input value
Note: this behavior occurs also outside the Storybook (while using the component).
Screencast.from.15-05-2025.18.10.16.webm
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working