I'm building a vue.js application with Vuetify 1.5.2. I have a v-menu (https://v15.vuetifyjs.com/en/components/menus) on which I would like to hook into a close event. I'm not seeing a close event in the documentation. Does anyone know if there is a close event or something equivalent on the v-menu for Vuetify 1.5.2?
Thanks
In version 2 of Vue, I was able to implement this feature by adding an
@inputevent listener to thev-menucomponent. For example:In the corresponding script section:
With this implementation, whenever the
v-menucomponent is interacted with (e.g., opened or closed), thehandleMenuInputmethod will be called. ThehandleMenuInputfunction checks if the input parameter is false, indicating that the menu is closing. If it is closing, the method proceeds to executethis.doSomethingYouLike().Please note that this solution may not be compatible with the version of Vue mentioned in the original question, but I hope it provides some guidance. Enjoy!