Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Select with multiple-selection for can.view.bindings (i.e. two-way binding via can-value) #551
Hey @justinbmeyer, these changes allow for the html-select element with
<select can-value="color" multiple> <option value="red">Red</option> <option value="green">Green</option> <option value="ultraviolet">Ultraviolet</option> </select>
I made changes as you suggested to always return a string. You were totally right, this actually caused me problems when using it as well. (Database Model was not expecting an array..).
The problem is not just iterating over all the options and setting them as selected - this will work but then
I'd love to get some input from you guys on this, as I believe this functionality (multi-select bindings) is a must-have for canjs.