Can't get "before-show" and "before-hide" events in QPopupEdit
-
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 -
@MeMiMu looks like a typo in the docs, there’s no payload emitted.
-
@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. -
@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.
-
@metalsadman I see.Thanks for your help.