sethsandaru / demo-vue-form-builder

Demo Vue Form Builder Usage with Laravel
http://vue-form-builder.sethphat.com/
23 stars 14 forks source link

Wrong behavior when using the builder on SPA (Vue) #3

Open keqhash opened 3 years ago

keqhash commented 3 years ago

There is an issue when trying to change the src of data for FormBuilder. My case that I have as below: image

On page load, I am injecting the saved form configuration to FormBuilder, then the user has the ability to inject demo configuration by clicking on demo button. He can make changes and click on reset button to reset the form to its default state. Once I use the demo conf and make changes to the form... if I clicked on demo button again where the expected result is to reset the form config to demo base data, I am getting below error: image

And the problems start to appear after that.

The issue is reproducible here as well: https://vue-form-builder.herokuapp.com/

image

Steps to Produce:

  1. Open https://vue-form-builder.herokuapp.com/
  2. Click on Set JSON Form-Data (Basic Configuration / Builder)
  3. Add controls to the generated form.
  4. Click on Set JSON Form-Data (Basic Configuration / Builder) again.
  5. Notice error messages in console.
  6. Try to add new controls and notice again.

Thanks,

AmmarHH commented 3 years ago

I recently faced the same issue, @keqhash , were you able to fix it ? and how?

keqhash commented 3 years ago

I recently faced the same issue, @keqhash , were you able to fix it ? and how?

No, I am not able to fix till now.