Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the value of the form by listening to input events? #298

Open
cheezone opened this issue Sep 16, 2021 · 2 comments
Open

How to change the value of the form by listening to input events? #298

cheezone opened this issue Sep 16, 2021 · 2 comments
Labels

Comments

@cheezone
Copy link

cheezone commented Sep 16, 2021

I listened to the input-child event and changed the v-model value of the form. When the change was made, the output value was correct, but it did not take effect in the form display. When the next event was triggered, the change I just made in the output form value disappeared.

Is it related to this?

better implementation of v-model by not mutating the value parameter and instead creating clones for each input event (better for clarity and side-effects)
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/1to2

How can I keep this change in the form display by change the Object directly?

When I change this <input> value and use dispatchEvent , it work but too troublesome......

@albanm
Copy link
Member

albanm commented Sep 16, 2021

Unfortunately this is not supported by vjsf, once bound the model is only reactive one way. See #58

@cheezone
Copy link
Author

Thanks!

@github-actions github-actions bot added the Stale label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants