Open singhpawank opened 4 months ago
I added pButton to first button in the component inside dialog A(parent dialog) and this behavior stopped.
<p-button pButton class="back-button" icon="pi pi-arrow-left" (onClick)="goBack()"/>
This isn't a fix though. I don't think the dialog should be trying to automatically give focus to anything on close. I upgraded to PrimeNG version 17.18.6 from version 15. It didn't do this previously.
Describe the bug
I have nested dialogs using primeng dialog service, I set focusOnShow false. When I closes dialog B inside dialog A, dialog A's component scrolled to top and first focusable element receives focus. How to prevent it.
Environment
Reproducer
No response
Angular version
17.3.0
PrimeNG version
17.15.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.13.0
Browser(s)
Version 126.0.6478.127
Steps to reproduce the behavior
No response
Expected behavior
When dialog B closes I want parent dialog A's scroll position as it was before opening dialog B.