Modal Backdrop Body Scroll-Lock Leak
What's Broken (Symptom)
Opening the modal sets `document.body.style.overflow = "hidden"`, but closing via backdrop click or Escape forgets to restore scrolling.
Expected Behavior
- • Centralize modal close into a single `closeModal()` helper that restores `document.body.style.overflow = ""` for Close button, backdrop click, and Escape.
Debugging Hints (0/2 used)
Try spotting the bug in the editor first. Need a nudge? Reveal Hint 1 anytime.
Root Cause Breakdown
Pass all 2 automated verification checks on the right to unlock the full Root Cause explanation.
Automated Bug Verification
2 Checks Ready- Backdrop click unlocks body scrollClicking backdrop resets body.style.overflow to empty string.
- Escape key unlocks body scrollPressing Escape restores body scrolling.
Live Sandboxed PreviewCtrl + Enter to verify
Console Output0 log(s)
No console output yet. Run Preview or Verify Bug Fix.