emberjs-touch icon indicating copy to clipboard operation
emberjs-touch copied to clipboard

Submit <form> didnt work

Open svox1 opened this issue 10 years ago • 2 comments

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 avatar Apr 25 '14 11:04 svox1

@svox1 It works fine to me.

NkS90 avatar Apr 29 '14 13:04 NkS90

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

svox1 avatar Jun 03 '14 17:06 svox1