We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd5e873 commit 1872675Copy full SHA for 1872675
packages/coreui-vue/src/components/close-button/CCloseButton.ts
@@ -18,7 +18,6 @@ export const CCloseButton = defineComponent({
18
required: false,
19
},
20
21
-
22
emits: [
23
/**
24
* Event called when the user clicks on the component.
@@ -27,6 +26,10 @@ export const CCloseButton = defineComponent({
27
26
],
28
setup(props, { emit }) {
29
const handleClick = () => {
+ if (props.disabled) {
30
+ return
31
+ }
32
+
33
emit('click')
34
}
35
return () =>
0 commit comments