jsonforms icon indicating copy to clipboard operation
jsonforms copied to clipboard

Event 'change' is triggered twice in Vue from 3.0.0-beta.3

Open meiweimuli opened this issue 3 years ago • 1 comments

Describe the bug

Component JsonForms trigger the change event twice when changing one form value. The second time is caused by the operation of setting this.data to event.data

image

Expected behavior

Only trigger the change event once.

Steps to reproduce the issue

  1. Clone project jsonforms-vue-seed.
  2. Delete file package-lock.json.
  3. Add code console.log("onChange", event.data); to method onChange in App.vue.
  4. Run the project and change any input value in browser.
  5. See the output twice in the browser console.

Screenshots

image

In which browser are you experiencing the issue?

Google Chrome Version 104.0.5112.79 (Official Build) (arm64)

Framework

Vue 3

RendererSet

Other (please specify in the Additional context field)

Additional context

vue-vanilla Sorry for my poor English.

meiweimuli avatar Aug 19 '22 05:08 meiweimuli

Thanks for the report! We'll take a look

sdirix avatar Aug 19 '22 20:08 sdirix