react icon indicating copy to clipboard operation
react copied to clipboard

[BUG / UNEXPECTED BEHAVIOR] When editing the "label", the "value" changes too.

Open vaspaul opened this issue 5 years ago • 5 comments

Environment

  • React-formio version: "^4.2.4"
  • Formio.js version: "4.11.0"
  • Frontend framework: React "^16.8.6"
  • Browser: many browsers.
  • Browser version: many browser versions.

Steps to Reproduce

  1. Create a form, add the "Select boxes" component to it.
  2. Click "Edit" on the select boxes component.
  3. Change the label.
  4. Pay attention - the value is changed too.

Expected behavior

  • It is expected that when the "label" is changed, the corresponding "value" will not automatically change. (Because I don't want to change the "value", I just want to fix the "label".)

Observed behavior

  • If you change the label value, the corresponding "value" will automatically change.

Example:

Pic1 Pic2 Pic3

vaspaul avatar Oct 28 '20 07:10 vaspaul

This is how it's meant to work, values are calculated automatically based on the Label field. You are able to manually change the value, but once you change the Label again, the Value will be recalculated.

alexandraRamanenka avatar Oct 29 '20 07:10 alexandraRamanenka

@alexandraRamanenka Is this behavior is not a bug, but a pre-planned feature? To change this behavior you don't plan, it suits the developers. Did I get it right?

vaspaul avatar Oct 29 '20 16:10 vaspaul

Sure. It works in a such way by design. I know that it is not ideal, but we have have a list of items to discuss and improve in the 5th release.

alexandraRamanenka avatar Oct 29 '20 17:10 alexandraRamanenka

@alexandraRamanenka Will you discuss the question about changing behavior (this issue) too? If there is, I would like to know the result of the developers ' discussion and decision about this issue.

vaspaul avatar Oct 29 '20 18:10 vaspaul

Hello @vaspaul, we will definitely add this item to be discussed for places we could improve going into our 5x release.

wag110894 avatar Oct 30 '20 18:10 wag110894

I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!

TanyaGashtold avatar Aug 31 '23 13:08 TanyaGashtold