question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drawer not opening and closing properly

See original GitHub issue

Steps to reproduce

  1. Create a template based on Vuetify Pre-defined template
  2. Set responsive and simple data variables for the Navigation Drawer component
  3. Add button to open and close drawer
  4. Evaluate button behavior on desktop: works as expected
  5. Resize window until below md to sm breakpoint (1024px)
  6. Reevaluate button behavior on mobile size: overlay shows without corresponding close action, and drawer does not open.

Versions

  • Vue: v2.3.4
  • Vuetify: v0.12.7
  • OS: Windows 10 & Linux Ubuntu
  • Browser: Chrome@latest & Chromium@latest

What is expected ?

Navigation drawer should open and close when clicking on menu button, and overlay/backdrop should also close drawer when clicked.

What is actually happening ?

After resizing screen, when on mobile-sized screen, the drawer stops behaving accordingly by not opening when v-model value changes. It only shows an action-less overlay/backdrop.

Reproduction Link

https://codepen.io/matheusgrieger/full/MopOXw/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
bretoniocommented, Feb 19, 2018

I did finally get your gist.

<script>
  export default {
    data () {
      return {
        drawer: false,
        dialog: false
      }
    }
  }
</script>

And now both drawer and dialog are working on my page. Thanks again.

2reactions
matheusgriegercommented, Jan 11, 2018

According to the message, be sure that you have declared drawer in your component’s data, like:

export default {
  data() {
    return {
      drawer: false
    }
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Drawer That Won't Close All the Way | Hunker
Step 1. Open the drawer as far as possible. Look in the back for any contents in the drawer box that might be...
Read more >
Drawer Won't Stay Closed? 3 Simple Ways You Can Make it ...
2. The Tracks Aren't Leveled Properly. Another reason your drawer is having a hard time remaining shut could be the leveling of your...
Read more >
How to Adjust Automatic Closing Drawers - Home Guides
Self-closing drawers work perfectly for years if they are properly adjusted to begin with. The primary reason for self-closing drawer failure is improperly...
Read more >
How to Fix Problems with Soft Close Drawers - HingeOutlet
Also make sure there's no rust on the slides, as that could impact their performance. If the drawer tilts in any direction, readjust...
Read more >
How to Fix Drawer Slides for Dressers & More
1. Sometimes, your drawer slides may become bent or misshapen. If this is the case, try using a pair of pliers to reshape...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found