Side navigation
#9643 closed bug (invalid)
Opened June 21, 2011 11:29PM UTC
Closed July 07, 2011 07:47AM UTC
Last modified July 07, 2011 03:16PM UTC
Executing .click() method directly after unbinding an event fails to "click" in IE
Reported by: | dygerati@gmail.com | Owned by: | dygerati@gmail.com |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | event | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have a form that utilizes a click handler to execute certain checks, and then unbinds the click handler and clicks the button again (via .click() ) to submit the form.
This works as expected in Firefox, but the .click() fails to register in IE. This results in the user having to click the button twice in order for the form to be submitted.
In the provided fiddle, the form attempts to submit on the first click in Firefox, but only on the second in IE. This appears to impact all versions of IE.
Attachments (0)
Change History (5)
Changed June 22, 2011 07:03AM UTC by comment:1
component: | unfiled → event |
---|---|
priority: | undecided → low |
Changed June 22, 2011 07:03AM UTC by comment:2
owner: | → dygerati@gmail.com |
---|---|
status: | new → pending |
Changed June 22, 2011 03:51PM UTC by comment:3
Replying to [comment:1 addyosmani]:
Thanks for submitting a ticket to the jQuery project! Is there a particular reason you're approaching the problem this way rather than simply using $(formElem).submit(); like this? http://jsfiddle.net/f8RkJ/? - it seems unnecessarily 'hacky'.
Heh, agreed :). The simple answer is that form.submit() simply wasn't working for me, which was likely due to a server-side issue; and I'm not too familiar with our Java based back-end, so I found a front-end work around! But, I've since figured it out and am using form.submit() without issues...
Just stumbled across this behavior in the process and thought it might qualify as a bug. Thanks!
Changed July 07, 2011 07:47AM UTC by comment:4
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Changed July 07, 2011 03:16PM UTC by comment:5
Replying to [comment:4 trac-o-bot]:
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Understood, but I actually did respond above; just accidentally did so as an anonymous user.
Thanks for submitting a ticket to the jQuery project!
Is there a particular reason you're approaching the problem this way rather than simply using $(formElem).submit(); like this? http://jsfiddle.net/f8RkJ/? - it seems unnecessarily 'hacky'.