[Vuejs]-Vuetify navigation drawer keeps showing itself whenever refresh the page

2👍

Remove the quotation marks from ‘false’ in your JS.

new Vue({
  el: '#app',
  data () {
      return {
        sideNav: null,
      }
    },
  created () {
    this.sideNav=false;
  }
})
👤iepure

1👍

Just remove created hook
problem solved,
previously on your created hook you already have a value “this.sideNav=false;”
on it so it is a valid sideNav value and so drawer is activated

👤kat

Leave a comment