aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget
diff options
context:
space:
mode:
authorTEHEK Firefox2011-10-12 23:42:21 +0000
committerIgor Minar2011-10-18 14:02:54 -0700
commitee6af9a97807e1f166da0f7b005f2133a86344d5 (patch)
treee98ff9294156a45f0983fe77c663942a34bfa252 /src/widget
parent74379df6c425030d8e3d52d3b1e37b2f45d21d2a (diff)
downloadangular.js-ee6af9a97807e1f166da0f7b005f2133a86344d5.tar.bz2
fix(ng:options): select correct element when '?'-option was previously selected
Closes #599
Diffstat (limited to 'src/widget')
-rw-r--r--src/widget/select.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/select.js b/src/widget/select.js
index 8184d8f9..2448d40c 100644
--- a/src/widget/select.js
+++ b/src/widget/select.js
@@ -384,7 +384,7 @@ angularWidget('select', function(element){
if (existingOption.id !== option.id) {
lastElement.val(existingOption.id = option.id);
}
- if (existingOption.selected !== option.selected) {
+ if (existingOption.element.selected !== option.selected) {
lastElement.prop('selected', (existingOption.selected = option.selected));
}
} else {