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

    q-select multiple how to close the popup when select

    Help
    3
    5
    1299
    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.
    • D
      donli last edited by donli

      Hello, how to auto-close the popup when using q-select multiple selections. The default behavior is the popup still open and waiting for the user to select another item.

      https://quasar.dev/vue-components/select#Example--Multiple-selection%2C-counter-and-max-values

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Don’t use multiple select? Sort of defeats the purpose of multiple select when you close the popup after the first selection, doesn’t it?

        Scott

        D 1 Reply Last reply Reply Quote 0
        • D
          donli @s.molinari last edited by

          @s-molinari Which component is better for this use case? Thanks!

          metalsadman 1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            Use QSelect without the multiple prop? I’m not sure what your use case is, so it’s hard to offer a suggestion. Maybe describe the problem you are trying to solve, instead of posing a problem you’ve ran into with what you think the solution might be.

            Scott

            1 Reply Last reply Reply Quote 0
            • metalsadman
              metalsadman @donli last edited by metalsadman

              @donli you can use a ref on your QSelect and call hidePopup method at your @input event handler. ie.

              <q-select ... ref="select" @input="$refs.select.hidePopup()" ... />
              
              1 Reply Last reply Reply Quote 1
              • First post
                Last post