Repository navigation
Conversation
- 🐛 Keep absent disableOutsidePointerEvents undefined when AlertDialogContent forwards props - ✅ Add coverage for interactive alert dialog content while body is locked
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAlertDialogContent now explicitly defaults ChangesPointer-events prop default and test behavior
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@zernonia, it is also reproducible here: https://reka-ui.com/docs/components/alert-dialog |
commit: |
Summary
This plugs the same boolean-default hole in
AlertDialogContentthatDialogContentalready fixed in #2679 🧩✨ Without it, the wrapper accidentally forwards an absentdisableOutsidePointerEventsprop asfalse, so alert dialogs with an overlay can open with the body locked while the content itself stays non-interactive 😬undefinedfor absentdisableOutsidePointerEventsonAlertDialogContent, lettingDialogContentModalkeep its default lock behaviorpointer-events: autowhile the body remains lockedWhy
DialogContentnow avoids Vue's boolean prop coercion by defaultingdisableOutsidePointerEventstoundefined.AlertDialogContentextends the same props, but still used plaindefineProps, so Vue coerced the missing prop tofalsebefore forwarding it downstream.That means
DialogContentModalnever gets to apply its defaulttrue, andDismissableLayerdoes not mark the active alert dialog content as pointer-interactive. The body can still be locked by the overlay path, leaving the visible buttons looking fine but unable to receive real browser clicks 🧊This is a small follow-up to #2677 / #2679.
Summary by CodeRabbit
Tests
Bug Fixes