knockout-select2 icon indicating copy to clipboard operation
knockout-select2 copied to clipboard

Can't get my observableArray value to update when selecting items

Open phinett opened this issue 9 years ago • 1 comments

Is this binding supposed to update my observableArray property when i select new items from my select2 list?

I am using a multi-select dropdown, but my viewmodel is never updated.

I can' see anywhere in this binding which would update the observable property, or is this done somewhere else?

phinett avatar Jun 12 '16 17:06 phinett

Sorry for the delay... didn't see this question until now.

This binding applies select2 to an existing select element. Knockout select bindings can be used to observe changes.

I suggest making your code work with vanilla knockout only on a multiselect select element. Then once everything works as expected, add select2 binding without removing the other bindings.

cruikshj avatar Aug 10 '16 18:08 cruikshj