-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selectmenu selection does not change observable value #41
Comments
@bernesto: the underlying observable you mentioned is an observable bound to knockout's value binding, isn't it? <select data-bind="selectmenu: {}, value: valueObservable">...</select> |
Yes. Something similar to this:
Also, I couldn't get it working with an array of objects bound to the label either. It renders fine, it just will not perform two-way binding in either case for the myValue property. I can put together a more detailed example if needed. |
No need for a more detailed example, thanks. |
Awesome. That is what I was thinking too. Glad to see you are on top of it. Seems like this might be the case in some of the other jQuery UI controls that have non-standard events plus properties that could be bound to observables. (e.g. spinner, tabs, menu, accordion) I have not used them yet in this project, but they have similar usage scenarios. What do you think? |
Oops, it was closed accidentally. |
Fixed in v2.2.0. |
When changing the value of a selectmenu, the underlying observable does not change. If listening to the the "change" event on the selectmenu, and triggering a "change" event on the underlying select element, it does then work.
The text was updated successfully, but these errors were encountered: