Skip to content

Commit d573dcd

Browse files
committed
docs: update content
1 parent 8ee8286 commit d573dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/docs/components/collapse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The collapse component is used to show and hide content. Buttons or anchors are
1515
You can use a link or a button component.
1616

1717
::: demo
18-
<CButton color="primary" href="#" @click="visible = !visible">Link</CButton>
18+
<CButton color="primary" href="#" @click.prevent="visible = !visible">Link</CButton>
1919
<CButton color="primary" @click="visible = !visible">Button</CButton>
2020
<CCollapse :visible="visible">
2121
<CCard class="mt-3">
@@ -29,7 +29,7 @@ You can use a link or a button component.
2929
:::
3030
```vue
3131
<template>
32-
<CButton color="primary" href="#" @click="visible = !visible">Link</CButton>
32+
<CButton color="primary" href="#" @click.prevent="visible = !visible">Link</CButton>
3333
<CButton color="primary" @click="visible = !visible">Button</CButton>
3434
<CCollapse :visible="visible">
3535
<CCard class="mt-3">

0 commit comments

Comments
 (0)