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

update select binding issue #379

Closed
abumalekFayed opened this issue Oct 1, 2022 · 4 comments
Closed

update select binding issue #379

abumalekFayed opened this issue Oct 1, 2022 · 4 comments

Comments

@abumalekFayed
Copy link

I have form include select with data source from context,the data source is array of object and i set x-itemTittle and x-itemKey to bind with key
the problem appear when trying to update record and set the model with a specific key the select not work and no selection was happen.

@albanm
Copy link
Member

albanm commented Oct 1, 2022

Can you provide an example ? Maybe in the form of a codepen (you can use links in the doc to initialize a codepen).

@abumalekFayed
Copy link
Author

abumalekFayed commented Oct 1, 2022

https://codepen.io/gafbxjvt/pen/RwyyWOx
when trying to edit an item from the list, binding to select id does not work however the model updated successfully

@albanm
Copy link
Member

albanm commented Oct 1, 2022

I think this another case of #58

Vjsf does not work well with model changes from outside, you have to re-render.

@abumalekFayed
Copy link
Author

Thank you the problem was solved by setting select type to a number instead of a string as binding id is a number
thank you very much for your awesome work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants