Skip to content

Commit cabdea4

Browse files
committed
refactor(modal): destrucure ...props first on <dialog>
1 parent 4c3da81 commit cabdea4

File tree

1 file changed

+1
-1
lines changed
  • packages/kit-headless/src/components/modal

1 file changed

+1
-1
lines changed

packages/kit-headless/src/components/modal/modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export const Modal = component$((props: ModalProps) => {
8686

8787
return (
8888
<dialog
89-
role={props.alert === true ? 'alertdialog' : 'dialog'}
9089
{...props}
90+
role={props.alert === true ? 'alertdialog' : 'dialog'}
9191
ref={modalRefSig}
9292
onClick$={(event) => closeOnBackdropClick$(event)}
9393
>

0 commit comments

Comments
 (0)