cruikshj / knockout-select2

Select2 v4 binding handler for Knockout
MIT License
25 stars 16 forks source link

Initialize data and subscribe to observable changes #18

Open dthompson101 opened 7 years ago

dthompson101 commented 7 years ago

The select element was not being initialized with the data from the observable and changes to the observable were not updating the select element. The id is now being parsed as an int by default but has an option to keep id as a string, although it might be better to default the id to a string.