#9643 closed bug (invalid)
Executing .click() method directly after unbinding an event fails to "click" in IE
Reported by: | Owned by: | ||
---|---|---|---|
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.
Change History (5)
comment:1 follow-up: 3 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
comment:2 Changed 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:3 Changed 12 years ago by
Replying to 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!
comment:4 follow-up: 5 Changed 12 years ago by
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!
comment:5 Changed 12 years ago by
Replying to 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'.