Skip to content
Bug reportOct 17, 2026· 0:26· 3 views

PrimeVue: nested DynamicDialog close removes scroll lock while outer dialog stays open

0:26 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

mediumDynamicDialog scroll lock / DialogService
os: macOSbrowser: Chromium 151.0.7922.34version: PrimeVue 5.0.2viewport: 1280x720

Repro steps

  1. 1.Navigate to the Dynamic Dialog documentation page at /dynamicdialog
  2. 2.Click 'Select a Product' to open the primary 'Product List' dialog
  3. 3.Click the 'Nested Dialog' button in the header of 'Product List'
  4. 4.Click 'Close' inside the nested 'Information' dialog
  5. 5.Scroll the mouse wheel over the page while the parent 'Product List' dialog is still open

Expected

Document body scroll lock should remain active until all open dialogs are closed.

Actual

Closing the nested dialog removes the scroll lock, allowing the background page to scroll behind the still active parent dialog.

Evidence

visualThe primary 'Product List' dialog opens as an overlay over the documentation page at t=5.0s.
visualThe secondary 'Information' dialog opens over the primary dialog at t=11.0s.
visualThe nested dialog closes after clicking 'Close', leaving 'Product List' visible at t=17.0s.
visualThe background page scrolls down while the 'Product List' dialog remains open, bringing the bottom footer 'PrimeVue 5.0.2 by PrimeUI' into view at t=21.0s.
Issue markdown (copy-paste ready)
### Description
When opening a nested DynamicDialog and subsequently closing it, the body scroll lock is released prematurely. The background page can be scrolled freely even though the parent dialog remains active on screen.

### Steps to Reproduce
1. Navigate to `/dynamicdialog` (0.0s).
2. Click the 'Select a Product' button to launch the parent dialog (3.9s).
3. Click 'Nested Dialog' inside the 'Product List' dialog to open the nested 'Information' dialog (10.1s).
4. Click 'Close' on the nested dialog (15.9s).
5. Attempt to scroll the page while 'Product List' remains open (21.0s).

### Expected Behavior
Body scroll locking should track open dialog depth and only be disabled when the final dialog is closed.

### Actual Behavior
Closing the child dialog clears the body scroll lock immediately, allowing the background page to scroll beneath the parent dialog.

*Recorded with SceneRecap.*

This report was written by SceneRecap from a screen recording. Try SceneRecap free

Turn a screen recording into a bug report like this one.

Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.

Try SceneRecap free →