koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
546 stars 155 forks source link

How can I know which field was changed in logEvent function #280

Closed Vision70 closed 3 years ago

Vision70 commented 3 years ago

Hello,

How can I know which field was changed in logEvent function?

In the exemples, there are only 2 parameters passed to the function logEvent. The 'key' and $event, that is the model.

When I receive the $event parameter, it's the model updated. But I don't know which field was changed.

Is it possible to identify this?

Thank you.

Marcelo

albanm commented 3 years ago

On top of input and change events that relay only the root model, you get input-child and change-child that contain some context. The new events might create some quite messy output and need some tuning, but the idea is there.