You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add parent-child validation for Radix Dialog, AlertDialog, Drawer, Popover, and HoverCard components
- Add _valid_parents ClassVar to Dialog components (primitives and themes)
- Add _valid_parents ClassVar to AlertDialog components
- Add _valid_parents ClassVar to Drawer components
- Add _valid_parents ClassVar to Popover and HoverCard components
- Add comprehensive test suite for Dialog validation
- Fix the error: DialogTrigger must be used within Dialog
This prevents runtime React errors by validating component hierarchy at compile time.
Note: Pre-existing pyright error in dialog.py (RadixPrimitiveTriggerComponent import)
exists on main branch and is not introduced by these changes.
Co-Authored-By: Alek <[email protected]>
"""A layer that covers the inert portion of the view when the dialog is open."""
@@ -61,6 +63,8 @@ class DialogOverlay(DialogElement):
61
63
# Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. It inherits from Dialog.Portal.
0 commit comments