--I have been trying to debug this for days with no solution.
I have an MVC5 app and using Knockout 2.3 and Jquery 1.10. Whenever I click a button in my view's html (not in a form, just a button that is type="button" or "submit"), and that button's click is databound to a function in my viewmodel, that viewmodel function gets called twice?? I see the debugger shows that as well as Fiddler.I set clickBubble to false... does not make a difference. I stepped through the debugger and KO properly sets the e.prevent... parameters to false...
Any ideas? Please, if the suggestion is to use a different version of KO or Jquery, please let me know you have actually tested those versions work with.net 4.5, MVC5 and WebApi2. Otherwise I am down another rabbit hole.
Thanks in advance
You received this message because you are subscribed to the Google Groups "KnockoutJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knockoutjs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Use bind, passing parameters to the bind method:
data-bind="click: $root.myFunction.bind($data, $data)"