Skip to content

focus is not set to yes-button in modal dialog #204

Closed Answered by cagataycivici
hgfrey asked this question in PrimeFaces
Discussion options

You must be logged in to vote

Interesting, maybe you can call applyFocus manually with a timeout.

public void serverSideMethod() {
     PrimeFaces.current().executeScript("PF('widgetVar').show()");
     PrimeFaces.current().executeScript("setTimeout( () => PF('widgetVar').applyFocus(), 100 )")
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hgfrey
Comment options

Answer selected by jepsar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants