Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9643 closed bug (invalid)

Executing .click() method directly after unbinding an event fails to "click" in IE

Reported by: dygerati@… Owned by: dygerati@…
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.

http://jsfiddle.net/Dygerati/VBB2C/2/

Change History (5)

comment:1 Changed 8 years ago by addyosmani

Component: unfiledevent
Priority: undecidedlow

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'.

comment:2 Changed 8 years ago by addyosmani

Owner: set to dygerati@…
Status: newpending

comment:3 in reply to:  1 Changed 8 years ago by anonymous

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 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

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 in reply to:  4 Changed 8 years ago by dygerati@…

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.

Note: See TracTickets for help on using tickets.