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
1515You 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">
You can’t perform that action at this time.
0 commit comments