@justinbmeyer We have a helper function which creates the select box based on observe array of label-value pairs [{“label”: “”, value:“”}, {“label”: “”, value:“”}] and it also calls $option.attr(“selected”, “selected”) and $option.prop(“selected”, true) when label-value pairs value matches selected value. This approach used to work in canjs 2.2.5 but after upgrade to 2.3.28 it is not working.
The selected attribute on the option is getting set correctly but selection is not happening. see screenshot
It works
- When I pass a serialized array of label-value pairs instead of observer array of label-value pairs
Or - If we call $option.attr(“selected”, “selected”) within setTimeout with a delay of 500 it works, even with the observable array of label-value pairs
Below are screenshot of array of label-value pairs before and after upgrade
I am not sure how observe array of label-value pairs is causing selection not work
Were not sure how observable array is interfering with option selection