Skip to content
Discussion options

You must be logged in to vote

You can use proxiedModel in VDialog

Parent
<myDialog v-model="dialog" />

Child

<template>
  <VDialog 
   :model-value="modelValue" 
   @update:model-value="$emit('update:modelValue', $event)">

   <VBtn @click="$emit('update:modelValue', !modelValue)"> 
      Dismiss
   </VBtn>
       
  </VDialog>
</template>

<script setup>
const props = defineProps({
  modelValue: {
    type: Boolean,
  },
});
</script>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adverich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants