This project is archived and is in readonly mode.
:disable_with option to submit_tag() doesn't work with IE
-
Han Kessels
- Tag changed from 2.2.2, ie, submit_tag to 2.2.2, ie, patch, submit_tag
Here is a patch. Instead of cloning the button element and changing it's type, it simply creates a new hidden element and copies name and value. Test updates are included.
See also here
-
Michael Koziarski
- Assigned user set to Michael Koziarski
- Milestone cleared.
-
Han Kessels
Thanks Michael.
It would be great if this patch could land in the next 2.3.x release.
-
Michael Koziarski
Are name and value sufficient? It could mess up formatting stuff if we don't copy classes, etc right?
Which versions of IE does this break in?
-
Han Kessels
It breaks in IE6, 7 and 8.
The new element is a hidden input element, so formatting will not be affected. Its only purpose is to pass along the button's value on submit, so name and value should be all that is needed.
-
Michael Koziarski
- State changed from new to committed
Pushed to 2-3-stable and master. Is #633 ok now too?
-
Han Kessels
- Tag changed from 2.2.2, ie, patch, submit_tag to 2-3-stable, ie, patch, submit_tag
Thanks!
#633 is good too.
