You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
References rniemeyer#5 (rniemeyer#5).
Knockout's submit binding handler is subtly different to the other event handlers.
Instead of the root element being `this`, and getting two arguments `data`, and `event`, it sets `this` to the current bindingContext value, and passes a single argument that is the form element that is bound.
This patch replicates that behaviour.
When you bind to a knockout submit handler, you get the 'form' element as the only argument.
When you use delegatedEvents, and data-submit='handler', you get (data, event), as you would see with a click (or other) handler.
Should this be brought into line with how knockout's submit binding handler works, or not?
The text was updated successfully, but these errors were encountered: