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

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

    Help
    1
    1
    480
    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.
    • G
      greene48 last edited by

      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.

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