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
@@ -35,6 +35,11 @@ class DialogRoot(DialogElement):
35
35
# The modality of the dialog. When set to true, interaction with outside elements will be disabled and only dialog content will be visible to screen readers.
36
36
modal: Var[bool]
37
37
38
+
_valid_children: ClassVar[list[str]] = [
39
+
"DialogTrigger",
40
+
"DialogPortal",
41
+
]
42
+
38
43
39
44
classDialogPortal(DialogElement):
40
45
"""Portal component for Dialog."""
@@ -48,6 +53,8 @@ class DialogPortal(DialogElement):
48
53
# Specify a container element to portal the content into.
"""A layer that covers the inert portion of the view when the dialog is open."""
@@ -61,6 +68,8 @@ class DialogOverlay(DialogElement):
61
68
# 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