[ 
https://issues.apache.org/jira/browse/WICKET-5119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13631004#comment-13631004
 ] 

Uffe Heerfordt commented on WICKET-5119:
----------------------------------------

Hi,

My first report was maybe a bit vague so I have now added a Quickstart project 
that can recreate the issue.  The issue is only visible in Internet Explorer 
and I have been able to reproduce it in IE8,IE9 and IE10.

Steps to reproduce the problem:

1. Start the attached quickstart project
2. Click one first link on the default page. (popup shows nicely and has the 
focus) 
3. Now click on secound link without closing the popupwindow.  (script error 
occurs and content is shown in main window)

Script Error:  'Member not found' is thrown when focus() is called on the popup 
window.

Br,
Uffe
                
> PopupSettings IE8 - dosen't work secound time a link is clicked.
> ----------------------------------------------------------------
>
>                 Key: WICKET-5119
>                 URL: https://issues.apache.org/jira/browse/WICKET-5119
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.4.0
>            Reporter: Uffe Heerfordt
>         Attachments: quickstart-onissue.zip
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> Hi,
> The popup functionality causes a script error in IE8, if the popup window is 
> already open. As a result the link's default behaviour is executed instead - 
> as ' return false; ' never is reached.
> Class: org.apache.wicket.markup.html.link.PopupSettings
> The problem exists in line: 188 //  if(w.blur) w.focus();
> In IE8 blur and focus isen't defined - secound time a popup link is called 
> and therefore the logic breaks.
> //An alternative: (test if w.blur is defined)
> script.append("'); if( jQuery.isFunction( w.blur ) && w.blur ) { w.focus(); } 
> ").append(" return false;");
> Br,
> Uffe.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to