Easier way to determine if drawer is showing due to show-if-above



  • Currently, I’m using this to determine whether to hide the drawer if it is shown due to show-if-above:

    if(this.$refs.drawer.belowBreakpoint)this.left=false;
    

    The drawer’s v-model is this.left and the ref is drawer.

    However, this feels hacky. I don’t think belowBreakpoint is documented or is the “official” way to do this.

    Is there an official way to go about doing this other than using belowBreakpoint, as I don’t want my code to be broken due to a future release of quasar?


Log in to reply