Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Knockout.js is an amazingly great MVVM framework http://knockoutjs.com/
Alas, Chosen does not work with it at all. I can see in DOM that Knockout is properly updating the select element, but Chosen is showing its corresponding "dropdown" as disabled and empty :(
Tried to force Chosen to update with
Really out of options here. Would very much appreciate any help/insight.
I just had this issue (knockout bindings were not working for chosen 1 out of 5 times the page was loaded) and the cause was that chosen was being loaded after knockout. Since I was using requirejs for module loading, all I had to do was set up "chosen" as a dependency for knockout. Something like this:
I did not really dig into this issue, but it's not happening anymore after this fix. I know this is a specific setup (knockoutjs + chosen + requirejs), but I hope that helps somebody.