[Question] - [Custom Component] - Custom components are not maintain the state when dragging
dinbtechit opened this issue · comments
Dinesh commented
Custom components are not maintaining the values/state when dragged.
- 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'
}]
- 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".
Any idea how I can fix this?
daneformio commented
@dinbtechit Can you let us know what versions you are using?