Skip to content

Commit defa2c2

Browse files
committed
fix(ng:options): compile null/blank option tag, select correct element in the view when unknown option is present
Closes angular#562, angular#599
1 parent f9144f0 commit defa2c2

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
@@ -389,7 +389,7 @@ angularWidget('select', function(element){
389389
if (existingOption.id !== option.id) {
390390
lastElement.val(existingOption.id = option.id);
391391
}
392-
if (existingOption.selected !== option.selected) {
392+
if (existingOption.element.selected !== option.selected) {
393393
lastElement.prop('selected', (existingOption.selected = option.selected));
394394
}
395395
} else {

0 commit comments

Comments
 (0)