knockout/knockout — pull request #935 by mbest (2013-05-30 23:23:49+00:00)
Title: Observable not getting updated when select options changed

Problem is when select options are changed observable bound to value is not being updated.

So when I change Honda to Toyota, options in second select got changed fine, but selectedModel observable not.

jsFiddle: http://jsfiddle.net/apuchkov/n4VyD/

````
function ViewModel() {
var self = this;

self.selectedMake = ko.observable()
self.selectedModel = ko.observable()

self.makes = ["Honda", "Toyota"];
self.models = ko.computed(function () {
if (self.selectedMake() === "Honda") return ["CRV", "Accord"];
if (self.selectedMake() === "Toyota") return ["Rav4", "Camry"];
return [];
});
}
$(function () {
ko.applyBindings(new ViewModel());
});
````

````

Selected make:

Selected model:

````