emberjs-touch
emberjs-touch copied to clipboard
Submit <form> didnt work
Thanks for sharing your ember-fastclick with us! Great script.
I have found a Bug with submitting a form in HandlebarsJS:
<form {{action "login" on="submit"}}>
....
<button type="submit">
Login
</button>
This didnt work anymore ive I used your Script.
In Line 129 i add some Debug Code:
console.log("EventName: " + action.eventName + " # " + eventName);
If I click the Button, it prints:
EventName: submit # click
Eventnames are different.
Is it possible to extend your script that submitting forms also works?
@svox1 It works fine to me.
Hm strange. It didnt work for me...
This works for me: https://github.com/svox1/emberjs-touch/commit/b420aad6320c0acf6ef0665c2dfa8dfabb13632f
And another hack for faster input and textareas: https://github.com/svox1/emberjs-touch/commit/85c09a4a2b62b99e77cb897e8dc2a72fc3652d6c