File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ The collapse component is used to show and hide content. Buttons or anchors are
15
15
You can use a link or a button component.
16
16
17
17
::: demo
18
- <CButton color="primary" href="#" @click ="visible = !visible">Link</CButton >
18
+ <CButton color="primary" href="#" @click .prevent ="visible = !visible">Link</CButton >
19
19
<CButton color="primary" @click ="visible = !visible">Button</CButton >
20
20
<CCollapse :visible =" visible " >
21
21
<CCard class =" mt-3 " >
@@ -29,7 +29,7 @@ You can use a link or a button component.
29
29
:::
30
30
``` vue
31
31
<template>
32
- <CButton color="primary" href="#" @click="visible = !visible">Link</CButton>
32
+ <CButton color="primary" href="#" @click.prevent ="visible = !visible">Link</CButton>
33
33
<CButton color="primary" @click="visible = !visible">Button</CButton>
34
34
<CCollapse :visible="visible">
35
35
<CCard class="mt-3">
You can’t perform that action at this time.
0 commit comments