Skip to content

Commit fec16a4

Browse files
committed
fix(ng:options): select correct element when '?'-option was previously selected
Closes angular#599
1 parent 74379df commit fec16a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widget/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ angularWidget('select', function(element){
384384
if (existingOption.id !== option.id) {
385385
lastElement.val(existingOption.id = option.id);
386386
}
387-
if (existingOption.selected !== option.selected) {
387+
if (existingOption.element.selected !== option.selected) {
388388
lastElement.prop('selected', (existingOption.selected = option.selected));
389389
}
390390
} else {

0 commit comments

Comments
 (0)