vue-final / vue-final-modal

🍕Vue Final Modal is a tiny, renderless, mobile-friendly, feature-rich modal component for Vue.js.
https://vue-final-modal.org
MIT License
864 stars 95 forks source link

onOpened, onClosed hooks are not triggered #349

Closed SDKexplorer closed 1 year ago

SDKexplorer commented 1 year ago

Reproduction Link

https://stackblitz.com/edit/github-wtv4qd?file=src/components/MyModalPreview.vue

Steps to reproduce

call modal.open() or mocal.close()

What is Expected?

To trigger handlers

What is actually happening?

Nothing

hunterliu1003 commented 1 year ago

@SDKexplorer You have to define the event and emit them by yourself in MyModal: https://stackblitz.com/edit/github-wtv4qd-s55evb?file=src%2Fcomponents%2FMyModal.vue