angular icon indicating copy to clipboard operation
angular copied to clipboard

[Question] - [Custom Component] - Custom components are not maintain the state when dragging

Open dinbtechit opened this issue 2 years ago • 1 comments

Custom components are not maintaining the values/state when dragged.

  1. I created a custom button component and have a property called buttonText to store the button text.
editform: () => {
return [{
 key: customOptions.buttonText,
 type: 'textfield'
 input: true,
 defaultValue: 'Complete Payment'
}]
  1. Added to the form and modified the buttonText field to "Pay Now". Everything works fine up until this point.

But when we drag the custom button, it shows the default value of "Complete Payment" rather than the updated value "Pay Now".

Kapture 2023-11-02 at 16 05 26

Any idea how I can fix this?

dinbtechit avatar Nov 01 '23 14:11 dinbtechit

@dinbtechit Can you let us know what versions you are using?

daneformio avatar Mar 13 '24 13:03 daneformio

Thank you for your contribution. As this issue has been inactive for over 90 days, I will close it for now. If you wish to reopen the issue, please respond, and we can resume the triage process.

lane-formio avatar Jun 12 '24 13:06 lane-formio