
|
If you were logged in you would be able to see more operations.
|
|
|
Struts 1
Created: 07/Apr/06 09:44 PM
Updated: 28/Apr/06 04:48 PM
|
|
| Component/s: |
Tag Libraries
|
| Affects Version/s: |
1.2.9
|
| Fix Version/s: |
1.3.3
|
|
|
File Attachments:
|
|
|
Environment:
|
Operating System: other
Platform: Other
Operating System: other
Platform: Other
|
|
|
If a field's display property is set to 'none' using CSS or JavaScript, the
current code still tries to give the field focus which will result in an error
in IE.
A patch is for the org.apache.struts.taglib.html.FormTag.java file and is attached:
663c663
< " if (focusControl.type != \"hidden\" && !focusControl.disabled) {");
---
> " if (focusControl.type != \"hidden\" && !focusControl.disabled
&& focusControl.style.display != \"none\") {");
|
|
Description
|
If a field's display property is set to 'none' using CSS or JavaScript, the
current code still tries to give the field focus which will result in an error
in IE.
A patch is for the org.apache.struts.taglib.html.FormTag.java file and is attached:
663c663
< " if (focusControl.type != \"hidden\" && !focusControl.disabled) {");
---
> " if (focusControl.type != \"hidden\" && !focusControl.disabled
&& focusControl.style.display != \"none\") {"); |
Show » |
|
Patch to apply to org.apache.struts.taglib.html.FormTag to fix focus() bug.