Skip to content

Commit f44f2ba

Browse files
authored
Modal update (#234)
* Passing in additional headless ui props and updated documentation * Fixed all issues
1 parent bdc9055 commit f44f2ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/components/display/modal.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Modal({
3838
}
3939

4040
// Check if Role exists
41-
if (!roleOptions[role]) {
41+
if (!roleOptions.includes(role)) {
4242
console.error(
4343
`Invalid role option for dialog ${role}. Must be one of: 'dialog','alertdialog'`)
4444
console.warn(
@@ -54,8 +54,8 @@ function Modal({
5454
onClose={onClose}
5555
static= {isStatic}
5656
autoFocus={autoFocus}
57-
dialogTransition={dialogTransition}
58-
unount={unmount}
57+
transition={dialogTransition}
58+
unmount={unmount}
5959
role={role}
6060
className={gwMerge("gw-relative", "gw-z-[200]", className)}
6161
>

0 commit comments

Comments
 (0)