[
https://issues.apache.org/jira/browse/WICKET-5858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366148#comment-14366148
]
Tobias Soloschenko commented on WICKET-5858:
--------------------------------------------
That you removed the timeout of
https://issues.apache.org/jira/browse/WICKET-5564 is perfectly ok, because the
whole code of requesting the focus is done async and this might cause issues if
two focus requests within ajax calls are made.
I only set the focus request of the field to setTimeout, which will be
delegated to the native component. All other code is done sync:
var WF = Wicket.Focus;
if (WF.refocusLastFocusedComponentAfterResponse && WF.lastFocusId) {
......
I don't see issues with this change, but you got lot more experience with this
topic, so may we can discuss it.
> AjaxRequestTarget.focusComponent does not work in modal window
> --------------------------------------------------------------
>
> Key: WICKET-5858
> URL: https://issues.apache.org/jira/browse/WICKET-5858
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.19.0
> Reporter: Mikk Lauringson
> Attachments: WICKET-5858.zip
>
>
> Opening modal window and focusing a field in it does not work anymore.
> This worked in Wicket 6.16.0 and older versions, but does not work in 6.17.0,
> 6.18.0 and 6.19.0.
> This is basically same issue as WICKET-5781 but it was wrongly marked as
> duplicate of WICKET-5755 and resolved in 6.19.0. They are actually different
> problems and this problem is still not fixed in 6.19.0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)