-
Notifications
You must be signed in to change notification settings - Fork 14
fix(fieldset): Fix handleValidation for undefined fieldset #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
cd12d91
to
4eb3067
Compare
4eb3067
to
ebdd77c
Compare
Ensure `getField` handles undefined `formFields` by providing a fallback to an empty array. Also, properly check if `currentField` exists before accessing its `inputType` property to prevent errors. This improves robustness when processing form field values.
Simplify and streamline the logic for determining field values and types when validating `if` conditions. Removes redundant variable declarations and improves readability without altering functionality.
Refactored the value assignment logic to use the nullish coalescing operator for improved readability and consistency. This change ensures clearer handling of formValues and default values for FIELDSET types. No functional behavior is altered.
@sandrina-p hi, can you review PR, my users waiting for this ;) |
Hi @denatys! We are building the next major version of JSF, which includes/will include your bugfix. For that reason we won't review your PR, so we can focus on shipping the next version as soon as possible. In the meantime, here's a dev release based on this PR to unblock you. We hope that's okay for now.
Thank you! |
@dragidavid I need changes from v0.11.13-beta.0 can you make new version with my fix? |
Hey @denatys - sorry for the wait! Just released a new version for you under
Feel free to ping me if you need new dev releases while we're working on the next major version for the package. Happy to assist! |
handleValidation({}) for fieldsets is not working. But working fine for createHeadless form