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

    Can't get "before-show" and "before-hide" events in QPopupEdit

    Help
    2
    5
    575
    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.
    • M
      MeMiMu last edited by MeMiMu

      In the API,I see there’re “before-show” and “before-hide” events in QPopupEdit.

      @before-show -> function(evt)
      @before-hide -> function(evt)
      

      But when I try to get this event,it returns undefined.

      <q-popup-edit @before-hide="onBeforeHide" v-model="testValue">
        <q-input outlined v-model="testValue" />
      </q-popup-edit>
      
      onBeforeHide(e){
        console.log(e)
      }
      

      There’s also no event shows in vue-devtools
      https://imgur.com/a/0Mhol9v

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @MeMiMu last edited by

        @MeMiMu looks like a typo in the docs, there’s no payload emitted.

        M 1 Reply Last reply Reply Quote 0
        • M
          MeMiMu @metalsadman last edited by MeMiMu

          @metalsadman said in Can't get "before-show" and "before-hide" events in QPopupEdit:

          https://github.com/quasarframework/quasar/issues/5160
          I searched and found this issue. It seems that there should be an event here.

          metalsadman 1 Reply Last reply Reply Quote 0
          • metalsadman
            metalsadman @MeMiMu last edited by metalsadman

            @MeMiMu said in Can't get "before-show" and "before-hide" events in QPopupEdit:

            @metalsadman said in Can't get "before-show" and "before-hide" events in QPopupEdit:

            https://github.com/quasarframework/quasar/issues/5160
            I searched and found this issue. It seems that there should be an event here.

            the feature was for adding the event, which is emitted, yours is about the payload along with the event (what the docs alludes to), which really doesn’t emit it. the said events were added for when you want to do something before the dialog shows/hide just like what the OP’s request was for.

            M 1 Reply Last reply Reply Quote 0
            • M
              MeMiMu @metalsadman last edited by

              @metalsadman I see.Thanks for your help.

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