Skip to content

Commit 026d148

Browse files
authored
set CCloseButton to type "button" to prevent form submission
1 parent 18d8ec4 commit 026d148

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/coreui-vue/src/components/close-button/CCloseButton.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const CCloseButton = defineComponent({
4545
'aria-label': 'Close',
4646
disabled: props.disabled,
4747
onClick: handleClick,
48+
type: 'button',
4849
})
4950
},
5051
})

0 commit comments

Comments
 (0)