-
Notifications
You must be signed in to change notification settings - Fork 20
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
Change value from viewModele #5
Comments
I guess, you want to use |
I'm having the same issue, although I defined valueProp, labelProp and inputProp. Having this category object: if in the view model I call the autocomplete displays "/Computers" instead of "Computers". this is the code of the update method in the autocomplete: this.update = function(element, valueAccessor) { I debugged this in firefox, and options.value = "/Computers" Note that if the value is selected in the autocomplete, everything works ok. the problem is when the value is updated from the model |
I had this problem when the source was an observable array, it was somehow backpopulating the array with nothing. Using ko.toJS(vm) as the source fixed the issue however. |
I have binding on object {id:1,name:"some text"}
When I write in viewModele the code
this.objectValue = ko.observable(1);
I see in textBox "1" instead "some text"
Can I set this.objectValue any value from ViewModel?
Thank you!
The text was updated successfully, but these errors were encountered: