-
-
Notifications
You must be signed in to change notification settings - Fork 58
Prevent context menu close on click #8
Comments
Thanks for the suggestion, I will add this feature when I get a chance to. |
If you have an input field within the context menu then the menu will still be closed when focusing on the input. It might be better to use a directive such as clickaway (https://github.com/simplesmiler/vue-clickaway) rather than simply using the blur event? |
I don't know if @rawilk will be interested in implementing this, but to anyone else finding this issue you can easily add vue-clickaway support yourself by extending the base component like so:
All i've done here is extend the base component, import vue-clickaway and overwrite the template to remove Now if you have an input field (or any content) within the context menu then focusing on it won't close the menu but clicking outside of the menu will do so |
@robjbrain I think the directive would be useful for the menu instead of using |
|
Add a prop similar to CloseOnScroll that allows the customization of whether the context menu closes on click
The text was updated successfully, but these errors were encountered: