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 preceding code iterates over the "serviceTypes" collection, creating an option for each item. If this collection changes, the select/options are properly redrawn. If the currently selected option is removed from the collection, the first option in the select is selected, but the form model is not updated with the value of this option.
Repro steps:
Create a formView with a select with options backed by a collection
Bind model.selectedItem to the select
Select an item from the dropdown
Remove the selected item from the backing collection
The top item of the select is now selected
model.selectedItem should have the value of the top item, but still has the value of the deleted item
The text was updated successfully, but these errors were encountered:
Example:
The preceding code iterates over the "serviceTypes" collection, creating an option for each item. If this collection changes, the select/options are properly redrawn. If the currently selected option is removed from the collection, the first option in the select is selected, but the form model is not updated with the value of this option.
Repro steps:
The text was updated successfully, but these errors were encountered: