Skip to content
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

DynamicForm - Fixing Required Multi Field Saving Problem #1490

Merged
merged 1 commit into from
Mar 31, 2023
Merged

DynamicForm - Fixing Required Multi Field Saving Problem #1490

merged 1 commit into from
Mar 31, 2023

Conversation

SmarterJB
Copy link
Contributor

Q A
Bug fix? [ x ]
New feature? [ ]
New sample? [ ]
Related issues? fixes #1489

What's in this Pull Request?

Changed the way the required fields are validated in the DynamicForm.tsx, and also how the rendering of the error message is handled in the DynamicField.tsx. In both files it was expected that an empty value consists out of null, undefined or an empty string, but not an empty array. This PR fixes this problem

@joaojmendes joaojmendes self-requested a review March 31, 2023 21:34
@joaojmendes joaojmendes added this to the 3.14.0 milestone Mar 31, 2023
@joaojmendes joaojmendes merged commit aa19bbd into pnp:dev Mar 31, 2023
@joaojmendes
Copy link
Collaborator

@SmarterJB thank you very much for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants