No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    q-drawer hide/show event object is undefined

    Framework
    2
    3
    219
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kasparesky last edited by

      Hello,

      I’m trying to figure out why the event object is not getting passed to handler, first I thought the problem might be linked to my project, because I’m using a slightly older version of the framework (v1.9.16) so I edited a barebones q-drawer sample from Quasar framework documentation which uses version (v1.12.8), but it still does not work. Am I missing something obvious? @click event seems to work just fine.

      link to codepen: https://codepen.io/kasparesky/pen/LYGdKKa?editable=true&editors=101%3Dhttps%3A%2F%2Fquasar.dev%2Flayout%2Fdrawer

      As you can see I’m calling handler without and with explicitly setting event object, the result in console logs is the same. Any help would be much appreciated.

      1 Reply Last reply Reply Quote 0
      • T
        turigeza last edited by turigeza

        @kasparesky I think that those events only get passed to the listeners if you pass them in on the first place when you use the functions on the drawer.
        I might be wrong though … just a guess.
        https://codepen.io/turigeza/pen/qBbYvXx?editors=1010

        It kind of make sense. I mean if you set the model of the drawer what sort of event are you expecting to receive ? I don’t think there is way to know what event caused the model change.

        So it seems
        https://github.com/quasarframework/quasar/blob/dev/ui/src/components/drawer/QDrawer.js

        K 1 Reply Last reply Reply Quote 1
        • K
          kasparesky @turigeza last edited by

          @turigeza thanks for the response, and yes it actually makes sense, the event itself is being fired and it does not really matter what caused it, I’m not sure what was I expecting to see in the $evt object to be honest. Anyway thank you for your insight.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post