Export to GitHub

ufd - issue #15

Cannot submit html form with the Return key in IE when submit is an image


Posted on Apr 28, 2010 by Happy Hippo

Hello,

I found out ufd is preventing from submitting html form with the Return key (in other plain text input elements) in IE 7 and 8 (don't know about 6) when the submit button is an image (input type="image").

E.g. <input type="text" .../> <ufd> <input type="image" src="..." /> => won't work with the Return key pressed in the text input, the order of the elements doesn't seem to matter

Digging into the code revealed these two lines in the "disable" method:

this.input.attr("disabled", "disabled"); this.selectbox.attr("disabled", "disabled");

When these two are commented, submitting with the Return key works fine. I see the fields are enabled at the and of the method but can't really say how it affects the method and why they have to be disabled. Also I cannot explain why it is an issue for IE, especially when the fields are enabled again. There is no problem with other browsers.

Thanks for your help!

Comment #1

Posted on Sep 15, 2010 by Massive Ox

http://ufd.googlecode.com/svn/trunk/issueExamples/15.html

Built an example and verified bug.

Comment #2

Posted on Sep 15, 2010 by Massive Ox

http://ufd.googlecode.com/svn/trunk/issueExamples/15.html

Built an example and verified bug.

Comment #3

Posted on Sep 15, 2010 by Massive Ox

Wow it seems to be a basic iE6-8 bug, but I can't find any documentation on this bug - surely this isn't an unknown bug?

The example page above now has a minimal, no JQuery, raw JS example that still exhibits the bug.

Comment #4

Posted on Jul 4, 2011 by Massive Ox

I have updated the example, but I haven't found a solution. If anyone can suggest how to work around this bug, let me know.

Status: Accepted

Labels:
Type-Other Priority-Medium