Hi,

I think using more than one letter items (for example "hello, world") 
introduces empty items for the original plnkr code.

I replaced string operations with list operations:
if (itemList.indexOf($scope.sel_val) === -1) {
      $scope.sel_val = itemList[0];
}

This seems to work somewhat better, but still I manage to get empty items:
http://ariana.dy.fi/files/angular.png

For example (with the above code using list operations):
0) string is showing "a,b,c,e"
1) prepend ",,". The list is showing ",,a,b,c,e" 
2) use option box to select the second empty value from the option list
3) remove ",," prefix
4) use option box to select a

Now there is still empty "" at the beginning of the option list.

5) append ",g"

Still the empty "" persists.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to