knockout/knockout — pull request #1059 by Naddiseo (2013-08-02 22:21:33+00:00)
Title: Force option to be selected.

This is the result of about 2 days of debugging knockback, and then knockout, I've found that under certain conditions (which, I'm not sure) the selected index/value isn't set correctly and the UI isn't updated. This patch seems to fix these issues by forcing `select.options[select.selectedIndex].selected = true`

My test case involves switching a model inside of a view model.

Non-working version: http://jsfiddle.net/sPFZP/12/
Working version: http://jsfiddle.net/sPFZP/11/

Reference to knockback issue: kmalakoff/knockback#74

P.S, if this is accepted, please backport to the 2.3 branch.