Problem reproduced at http://jsfiddle.net/MenYM/12/
I am using a drop down list, with following bindings to a view model:
1. source (simple array of items)
I have also defined the data-role and, perhaps most importantly for this query, a data-option-label.
The problem is that if the data source defined in the view model is defined as an empty array, and at some point the data source is modified, the drop down list has an empty element, even before the data-option-label. (See the jsfiddle linked above).
On the other hand, if the data source had an element and afterwards was modified in the same way, the drop down list does not have an empty element.
What could be the problem here? Any pointers are appreciated.