Skip to content

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

@meiweimuli

Description

@meiweimuli

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions