Skip to content

Commit

Permalink
bug: Fix modal close button storybook example (#4227)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadJT authored Apr 26, 2024
1 parent a4b1943 commit c464383
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ui/src/components/va-modal/VaModal.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@ export const OldDemos: StoryFn = () => ({

export const CloseButton: StoryFn = () => ({
components: { VaModal },
data () {
return {
show: false,
}
},
template: `
<button @click="$refs.modal.show()">
<button @click="show = true">
show modal
</button>
<VaModal :model-value="true" ref="modal" :close-button="true">
<VaModal :model-value="show" @cancel="show = false" :close-button="true">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, voluptatum. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, voluptatum.
</VaModal>
`,
Expand Down

0 comments on commit c464383

Please sign in to comment.