[Vuejs]-How to close menu list by click in to component in vue

0๐Ÿ‘

โœ…

<template>
         <v-menu
+           v-model="showMenu"
            transition="slide-y-transition"
            bottom
            left
            offset-y
            nudge-bottom="2"
            :close-on-click="!activeTour"
          >
            <template #activator="{ on, attrs }">
              <v-btn
                icon
                class="ml-md-4"
                v-bind="attrs"
                v-on="on"
              >
                <v-icon>
                  mdi-plus-circle
                </v-icon>
              </v-btn>
            </template>
            <v-list>
-           <v-list-item>
+           <v-list-item @click="showMenu = false">
              <WorkRegistryDialog class="work-registry-activator">
                <template #activator="{ on: dialog, attrs }">
                  <v-list-item-title
                    v-bind="attrs"
                    v-on="dialog"
                    @click="zamknij"
                  >
                  {{ $t("add_entry") }}
                  </v-list-item-title>
                </template>
              </WorkRegistryDialog>
            </v-list-item>
</template>

Leave a comment