-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
BugSomething isn't workingSomething isn't workingNeeds TriagingNeeds attention from maintainers to triageNeeds attention from maintainers to triage
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
When a JSON Form contains an Array field whose default value is an empty array ([]), resetting the form creates a new empty Array item unexpectedly.
If validation is enabled on that Array field, the form becomes invalid immediately after reset, even though the reset should restore the original default state. This prevents the form from being submitted.
Steps To Reproduce
- Create a new App and a JSON Form
- Specify
{{ {profileIds: []} }}as source data in JS mode (real datasources have the same behaviour) - Switch the Field configuration for
Profile Idsto Field TypeArray - Configure the Field configuration for the Array Item to be
Requiredand also specify a regex for validation like^[a-z0-9-_]+$ - Now the form has no array item and is submittable
- Click on
Reset - An empty array item appears and the form can not be submitted anymore, because the empty array item is not valid
Public Sample App
No response
Environment
Production
Severity
High (Blocker to building or releasing)
Issue video log
No response
Version
Self Hosted - 1.95
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingNeeds TriagingNeeds attention from maintainers to triageNeeds attention from maintainers to triage