Skip to content

Commit

Permalink
docs: fix example sending click event to expected string param fixes b…
Browse files Browse the repository at this point in the history
  • Loading branch information
VividLemon authored Dec 3, 2024
1 parent 23adda6 commit e441516
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/docs/src/docs/composables/useModal.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ You can also provide an id to get particular modal and show/hide it. Currently,
find modal since the `BModal` in lazy mode may not render at page initial. If the modal component does not exist and you attempt to call any of the exposed methods the methods will safely ignore

<HighlightCard>
<BButton @click="show">Click me</BButton>
<BButton @click="show()">Click me</BButton>
<BModal v-if="someConditions" v-model="programmaticModal" id="my-modal">
<BButton @click="hide">Hide me</BButton>
<BButton @click="hide()">Hide me</BButton>
</BModal>
<template #html>

```vue
<template>
<BButton @click="show">Click me</BButton>
<BButton @click="show()">Click me</BButton>
<BModal v-if="someConditions" v-model="programmaticModal" id="my-modal">
<BButton @click="hide">Hide me</BButton>
<BButton @click="hide()">Hide me</BButton>
</BModal>
</template>
Expand Down

0 comments on commit e441516

Please sign in to comment.