You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, we should emit an event manually every time when we change the options list.
But I think it's a bad idea because of default behavior very odd, the browser just shifted value instead try to keep current.
If we want to keep current value after DOM modification we should do something like keyd "each" construction.
The text was updated successfully, but these errors were encountered:
Currently, Svelte didn't update value binding if you change options list in select. It's happening because browser didn't fire any event for that case but change value and ui.
A small example here: https://svelte.technology/repl?version=2.13.4&gist=2f292a1414939dfc3f69fccb37b72f73
Also some description of how it works for Angular users:
https://medium.com/@kastepanyan24/how-to-set-selected-option-dynamically-in-angular-6-85c99958cca5
Unfortunately, we should emit an event manually every time when we change the options list.
But I think it's a bad idea because of default behavior very odd, the browser just shifted value instead try to keep current.
If we want to keep current value after DOM modification we should do something like keyd "each" construction.
The text was updated successfully, but these errors were encountered: