We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdc9055 commit f44f2baCopy full SHA for f44f2ba
lib/components/display/modal.jsx
@@ -38,7 +38,7 @@ function Modal({
38
}
39
40
// Check if Role exists
41
- if (!roleOptions[role]) {
+ if (!roleOptions.includes(role)) {
42
console.error(
43
`Invalid role option for dialog ${role}. Must be one of: 'dialog','alertdialog'`)
44
console.warn(
@@ -54,8 +54,8 @@ function Modal({
54
onClose={onClose}
55
static= {isStatic}
56
autoFocus={autoFocus}
57
- dialogTransition={dialogTransition}
58
- unount={unmount}
+ transition={dialogTransition}
+ unmount={unmount}
59
role={role}
60
className={gwMerge("gw-relative", "gw-z-[200]", className)}
61
>
0 commit comments