formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.88k stars 1.06k forks source link

Even if custom default value is present default value (with multiple values are selected) is getting honored when we click add another, instead of empty field #5532

Open Lakshmiprabhak opened 6 months ago

Lakshmiprabhak commented 6 months ago

Environment:

Even if custom default value is present default value (with multiple values are selected) is getting honored when we click add another, instead of empty field

Hosting Type :

https://formio.github.io/formio.js/app/sandbox.html Formio js Version : 4.x Latest (Default)

Expected Behavior:

If custom default value and default value are present (with multiple values are selected), should bring empty field, instead of default value

STEPS-TO-REPRODUCE:

1)Add the textfield component 2)Goto data and select multiplevalues 3) Add default value and custom default values. 4)Goto preview and click on add another. 5)Observed first time custom default value horned and second time default value is horned.

Attached GIF for reference:

https://github.com/formio/formio.js/assets/81677482/5ba2b5d6-0119-4113-a283-ba7dd1feaefb

Reference defect:

I can see the similar same issue raised before as well. https://github.com/formio/formio.js/issues/4666 https://github.com/formio/formio.js/issues/5377

jeriah-formio commented 4 months ago

FIO-8361

lane-formio commented 4 months ago

After review, we don't expect to prioritize this in the near future but would gladly review any contributions related to this behavior.