Skip to content

Commit 3e3d289

Browse files
committed
Fix modal.close not being of type button
1 parent fec4897 commit 3e3d289

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fresh-jobs-brush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@qwik-ui/headless': patch
3+
---
4+
5+
fix: Modal.Close now of type button

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const HModalClose = component$((props: PropsOf<'button'>) => {
99
});
1010

1111
return (
12-
<button onClick$={[handleClick$, props.onClick$]} {...props}>
12+
<button type="button" onClick$={[handleClick$, props.onClick$]} {...props}>
1313
<Slot />
1414
</button>
1515
);

0 commit comments

Comments
 (0)