-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Selection box state is not updated when model has changed #356
Comments
I don't fully understand the situation. Could you provide a codepen (the doc contains links to init codepens from the examples) ? Or at least a schema. |
Okay, I tried to reproduce the problem in a minimal example here: When you klick the "toggle schema" button, the model changes, and the v-select gets updated, but the selection box created by vjsf does not update its value. Is there anything I am missing? |
It looks like another variant of #58 Once bound the model is only reactive one way. |
Okay thanks, I managed to get around the issue with the |
In my scenario I use
oneOf
to have a selection box and to display different form elements based on this selection. The whole form is embedded inside of av-dialog
. However, if I change the underlying model, the selection does not change. This means in my concrete case, when I select something, close the dialog, change the model, and open the dialog again, it still shows the old value (while the model is different by now). It works with a simple manually createdv-select
though.Is there any option I am missing, or is this just a bug?
The text was updated successfully, but these errors were encountered: