This project is archived and is in readonly mode.
:disable_with option to submit_tag() doesn't work with IE
Reported by Timothy Jones | February 12th, 2009 @ 10:28 PM
The implementation of this option resets the input button's type attribute to hidden. IE doesn't allow the type of an tag to be changed dynamically, and throws a "this command is not supported" error.
Comments and changes to this ticket
-
Han Kessels March 28th, 2009 @ 07:40 AM
- 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 April 27th, 2009 @ 09:31 AM
- Assigned user set to Michael Koziarski
- Milestone cleared.
-
Han Kessels May 24th, 2009 @ 03:28 AM
Thanks Michael.
It would be great if this patch could land in the next 2.3.x release.
-
Michael Koziarski May 26th, 2009 @ 11:59 AM
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 May 26th, 2009 @ 12:15 PM
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 June 1st, 2009 @ 03:06 AM
- State changed from new to committed
Pushed to 2-3-stable and master. Is #633 ok now too?
-
Han Kessels June 1st, 2009 @ 07:53 AM
- Tag changed from 2.2.2, ie, patch, submit_tag to 2-3-stable, ie, patch, submit_tag
Thanks!
#633 is good too.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>