-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
When inside the builder, when you have a datagrid with components that uses other components within the row with the customDefaultValue setting, if the property starts with an uppercase, an error is displayed within the console and the builder is not displayed correctly and becomes unusable
Version/Branch
@formio 5.0.1
To Reproduce
Steps to reproduce the behavior:
- Render the builder with an initial form that contains a customDefaultValue set to another row where its key starts with an uppercase letter
An example is provided in the Additional context section, the form contains a datagrid with 2 component: Quantity and New Quantity. the customDefaultValue of the component New Quantity is set to value = row.Quantity;
Expected behavior
The builder and customDefaultValue should work as expected
Screenshots
The builder normally (without customDefaultValue)
The builder with customDefaultValue
Additional context
Here is an html file containing the necessary code to reproduce the issue
formio-builder-datagrid-builder-bug.zip
Something to note: The problem can be fixed by setting the condition to value = row.quantity; (with a lower case letter) even if the key of the other component is Quantity.
Also I would still expect the builder to work normally