Files
romm/frontend
Georges-Antoine Assi 52fb6be0c8 fix(v2): share one body scroll lock across all overlays
RDialog and RDrawer each mutated body { overflow: hidden } but tracked
it with their own counter and saved-overflow key (rDialogOpenCount vs
rOverlayOpenCount). A dialog stacked over a drawer (or vice versa) would
restore overflow off its own count when it closed and clobber the other
overlay's lock, leaving the page scrollable while an overlay was still
open, or permanently locked once all closed.

Extract a single reference-counted lock (createBodyScrollLock) that
every overlay shares, so the body only unlocks once the last overlay
closes, in any close order. RDialog's z-index stack depth now reads the
shared overlay count (drawers sit below dialogs, so relative dialog
ordering is unchanged). Add a unit test covering the cross-overlay case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 21:43:11 -04:00
..
2026-06-22 10:06:03 -04:00
2025-09-09 20:19:30 -04:00
2026-05-30 20:53:52 -04:00
2026-06-25 17:17:23 -04:00