Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

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

Open
phinett opened this issue Jun 12, 2016 · 1 comment
Open

Comments

@phinett
Copy link

phinett commented Jun 12, 2016

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?

@cruikshj
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants