I'd like to auto focus a certain input field which is in a p-dialog component, which is opened/closed by a flag that is bind to the dialog's visible attribute.
When I add an "autofocus" attribute to the input tag - it is focused only in the first time the dialog is opened.
When I use the "onShow" event - it is emitted BEFORE the dialog is open.
When I add an "autofocus" directive and try to set the focus in AfterViewInit - it is called only once.
Anyone knows how I can set the focus or get a "onAfterShow" event for the dialog?