How to prevent clicking other elements when clicking away to dismiss popovers



  • When you click outside of a popover to dismiss it, is there a way to prevent the click from firing other events? For example, if I click another form element, I don’t want that element to gain focus, I only want the popover to lose focus. This would also be really handy for q-select when using multiple, since clicking away is the only way to dismiss the dropdown.

    I know I can listen for the @open event and add a disabled class to all other form elements, then remove it on @close. Just wondering if there is anything built in to the components themselves.