-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checkbox - add validation if no choice is selected (#1316)
* added validation in case no choice is selected * added unit test for validation logic, edited existing unit tests since they were failing because of new validation logic * Revert "added unit test for validation logic, edited existing unit tests since they were failing because of new validation logic" This reverts commit 3b4e0e7. * added 'required' prop, changed validation logic so that its more flexible, fixed unit tests * updated readme, fixed type of required * Update packages/checkbox/src/index.mts --------- Co-authored-by: Adam Šrenkel <adam.srenkel@student.tuke.sk> Co-authored-by: Simon Boudrias <admin@simonboudrias.com>
- Loading branch information
1 parent
3fff3fa
commit 6fb4d9c
Showing
3 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters