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

Allow modal singletons to be created via modalId #347

Closed matthew-dean closed 7 months ago

matthew-dean commented 1 year ago

Is your feature request related to a problem? Please describe.

I want some way to force single instances of modals.

Describe the solution you'd like

If two modals are given the same modalId, only one of them should appear on the screen at one time.

Describe alternatives you've considered

I tried to use the onBeforeMount and useVfm to destroy the existing modal with the same id, but it's not working.

Additional context