[ http://issues.apache.org/struts/browse/STR-2826?page=comments#action_37243 ]
Zarar Siddiqi commented on STR-2826: ------------------------------------ This worked for me. Thanks. Can't find the option to 'close' this issue so I'll leave that to you... > If a field's display property is set to 'none' using CSS or JavaScript, the > focus code fails. > --------------------------------------------------------------------------------------------- > > Key: STR-2826 > URL: http://issues.apache.org/struts/browse/STR-2826 > Project: Struts Action 1 > Type: Bug > Components: Taglibs > Versions: 1.2.9 > Environment: Operating System: other > Platform: Other > Reporter: Zarar Siddiqi > Assignee: Don Brown > Fix For: 1.3.3 > Attachments: focusControl_css_dispay_bug_fix.patch > > 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\") {"); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]