From ee6af9a97807e1f166da0f7b005f2133a86344d5 Mon Sep 17 00:00:00 2001 From: TEHEK Firefox Date: Wed, 12 Oct 2011 23:42:21 +0000 Subject: fix(ng:options): select correct element when '?'-option was previously selected Closes #599 --- src/widget/select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget/select.js') 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 { -- cgit v1.2.3