5
You can simply add a v-if to the v-dialog. This will get it removed completely from the DOM (destroyed) when closed.
<v-btn @click="showDialog = true">Show Dialog</v-btn>
<v-dialog v-if="showDialog" v-model="showDialog">
<v-card>
Hello World
</v-card>
</v-dialog>
- [Vuejs]-CORS error in .then clause of HTTP request
- [Vuejs]-Vue3 + TS: How to fix type 'never' for ref of empty array?
Source:stackexchange.com