-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Describe the bug
When binding an object (not a primitive) to a using bind:value, and the options array is populated asynchronously (e.g., after an API call), the initially set selected value shows at first when you enter the page but one refresh the page the default option doesn't appear as selected in the UI — even though the bound value and the options are clearly updated. The options render correctly, but no option is shown as selected.
Reproduction
Logs
export let sections = []
let section
const onChange = () => {
if(section!=null)
//dispatch("change",section)
}