Issue with Vuetify.js navigation-drawer failing to close correctly

After adjusting my browser window to a mobile size in order to display the toolbar icon of the navigation-drawer, I encountered an issue. Clicking the toolbar icon caused the navigation-drawer to appear, but when I reverted the browser back to 100% size, the navigation-drawer did not disappear and became permanent. Consequently, I was unable to close the drawer anymore since the toolbar only appears in the mobile window, which should have closed upon resizing back to desktop size.

Below is the template used:

<template>
  <div>
    <v-navigation-drawer 
        v-model="sideNav.model"
        absolute
        overflow
        disable-resize-watcher
        disable-route-watcher
        left
        persistent
        :app="sideNav.type = ''"
    >
      <v-list>
        <v-list-tile>
          <v-list-tile-action>
            <v-icon>supervisor_account</v-icon>
          </v-list-tile-action>
          <v-list-tile-content>Login</v-list-tile-content>
        </v-list-tile>
      </v-list>
    </v-navigation-drawer>
    <v-toolbar app dark class="primary" >
      <v-toolbar-side-icon
        @click.stop="sideNav.model = !sideNav.model" class="hidden-sm-and-up"

        ></v-toolbar-side-icon>
      <v-toolbar-title>DevMeetup</v-toolbar-title>
      <v-spacer></v-spacer>
      <v-toolbar-items class="hidden-xs-only">

        <v-btn flat router :to="{name : 'Home'}">
            <v-icon left dark>supervisor_account</v-icon>
            Home
        </v-btn>
        <v-btn flat router :to="{name : 'Login'}" >
            <v-icon left dark>supervisor_account</v-icon>
            Login

        </v-btn>
      </v-toolbar-items>
    </v-toolbar>
    <main>

    </main>
  </div>
</template>

<script>
  export default {
    data : () => ({
      sideNav: {
        model: false,
        type: 'persistent',
        clipped: false,
        floating: false,
        mini: false,
        stateless:true
      },
      isMobile: false

    }),
    mounted(){

    }
  }
</script>

Answer №1

Attempt disabling the resize observer and see if that resolves the issue.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the correct way to handle the return value of an useAsyncData function in Nuxt 3?

How can I display the retrieved 'data' from a useAsyncData function that fetches information from a pinia store? <script setup lang="ts"> import { useSale } from "~/stores/sale"; const saleStore = useSale(); const { da ...

Creating a custom request for the Upload component in Ant Design Vue requires a specific set of steps and

I attempted to implement the solution provided in How should customRequest be set in the Ant Design Upload component to work with an XMLHttpRequest? but it doesn't seem to be working for me in Ant Design Vue. Could someone provide an example, please? ...

Navigating between socket.io and express using while loops

Currently, I am running an express app with socket.io on my raspberry pi to control an LED panel. The panel is being driven by a while loop that updates the pixels. However, I am looking for a way to modify the parameters of this loop or even switch to a d ...

Typescript: organizing nested types within an interface

My goal is to create an interface CountersData based on my JSON data. The challenge lies in the nested id property, which contains an array of nested dictionaries. I want this property to be optional. However, I have not been successful in making it option ...

Strange error message regarding ES6 promises that is difficult to interpret

Snippet getToken(authCode: string): Promise<Token> { return fetch(tokenUrl, { method: "POST" }).then(res => res.json()).then(json => { if (json["error"]) { return Promise.reject(json); } return new Token ...

In what way can I utilize the request object within a promise that is nested?

I am currently working on a Nuxt server side rendered application using the express framework for authentication with the openid-client package. My goal is to store the retrieved token in the express session, but I am facing an issue where the request mode ...

Utilizing doT.js for Organizing Nested Lists from Arrays and Objects

Can nested lists be generated with doT.js? My current code only processes the first object in the array (g1) and ignores the rest. Is there a solution for this using doT.js? The desired result should be: G1 T11 T12 T13 G2 T21 T22 T23 $(document) ...

What is the method for extracting element.style.marginTop in digits exclusively?

Consider an HTML element with the property margin-top: 30px. function extractValue(margin) { /* to do */ } var element = document.getElementById("element"); alert(extractValue(element.style.marginTop)); #element { margin-top: 30px; } <div id=" ...

use two separate keys for grouping in JavaScript

My current approach involves using the reduce method to organize the data based on the Id of each query. var data = [ {Id: "552", valor: "50.00", Descricao: "Fraldas", }, {Id: "552", valor: "35.00", Descricao: "Creme", }, {Id: "545", valor: "2 ...

Showing the incorrect ziggy package

After successfully setting up the tightenco/ziggy package as per the documentation, I encountered an issue with the template displaying the entire list of addresses. Please help me identify where I may have made a mistake. <head> @routes ...

Issues have been encountered with the functionality of $rootScope

I am currently struggling with a code snippet in my loginCtrl.js file where I can't seem to get $rootScope to store the value of vm.userEmail. app.controller('LoginCtrl', function($timeout, $q, $log, $rootScope /*$auth*/, $location, $mdTo ...

The behavior of the jQuery click function seems to be quirky and not functioning as expected. Additionally, the

It seems that instead of triggering a POST request, somehow a GET request is being triggered. Additionally, the ajax call is not being made as expected. I have attempted this many times before, but none of my attempts seem to be working. It could potenti ...

Having trouble with my bootstrap carousel not functioning properly - issue with jQuery line causing the rest of the code to disable

I've been facing some challenges with this Bootstrap slider for quite some time now. Despite my best efforts and thorough research on the forum, I just can't seem to make it function properly. Here's the code snippet in question: <!DOCTY ...

Panel floating with Bootstrap framework

I have created a unique two-column layout using Bootstrap, utilizing the col-md-6 class. The layout consists of a row with a panel at the top containing a table, a left column panel displaying a list of media items, and a right column panel containing text ...

Accessing an array in JavaScript for a D3 Stacked Bar Chart

Currently, I am utilizing this specific version of a D3 stacked bar chart. As it stands, when a user hovers over a segment of a bar, a tooltip displays the value of that particular segment. Nevertheless, my goal is to incorporate HTML that presents a lis ...

The post() method in Express JS is functioning flawlessly in Firebase cloud function after deployment, however, it seems to encounter issues when running on a

https://i.stack.imgur.com/bIbOD.pngI am facing an issue with my Express JS application. Despite having both post() and get() requests, the post() request is not working on my local machine. It keeps throwing a 404 error with the message "Cannot POST / ...

A step-by-step guide to creating a delete feature for nested data in Laravel using Vue.js

My standard function format for deleting is not working on nested data. methods: { delete() { axios.delete('./../api/parent/' + this.parent.id) .then( response => { if( re ...

Refining the options in security question dropdown menus

Firstly: The title should mention filtering security options in dropdown lists, but it seems I'm restricted from using the term questions or question in the title. I came across this code example, but it appears to be outdated. Does anyone know why a ...

Looking to generate flipcards dynamically through javascript or jquery when a button or link is clicked?

I've created flipping cards that flip on hover, but I'm struggling to add a button/link that generates a new flipcard when clicked. Any help would be greatly appreciated - plus, I'm new here! Here's my HTML and CSS code for the flipcard ...

What could be causing the issue with the is condition in my Yup validation?

Currently, I am tackling a TypeScript project that involves utilizing Yup for form validation. My current roadblock pertains to a hiccup with the when function and the is condition. TypeScript is raising an error (TS2769) related to types, and I am struggl ...