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
The tricky part is that "items" is being loaded from the server, and isn't available during the first template update.
What happens is:
Pass 1
selectedValue is read, and bidir-value calls setValue on the select
items is empty, so there are no options in the select. setValue has no effect.
Pass 2
selectedValue is read, but is the same as before. The call to setValue is skipped (line 56 of BidirectionalValueBinder)
items is now populated from the server call. option elements get added to the select, but the right one isn't selected (since setValue was not called again).
Is there a clean solution to this?
The text was updated successfully, but these errors were encountered:
We recently encountered an issue with Flavour when trying to specify a 'select' element with dynamically-generated options:
The tricky part is that "items" is being loaded from the server, and isn't available during the first template update.
What happens is:
Is there a clean solution to this?
The text was updated successfully, but these errors were encountered: