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

    QSelect: Use the selected value for re-filtering

    Framework
    1
    2
    778
    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.
    • Dennis van Beek
      Dennis van Beek last edited by

      Hi, I don’t understand the default implementation of the QSelect with a filter (just single select).

      The component works fine for the initial selection, but if the user wants to change what he has selected, the previous selected value stays in the filter-input.
      This is very complicating for the users, when they want to change this text (and re-filter) to select a different item.

      I think this only useful in ‘multiple’ mode, not on a single select filtered QSelect.

      Is there a way for me to work around this?
      Or maybe something can be changed in this component to at least configure it to use the previous selected value as filter?

      The example on the Quasar page shows what I mean:
      https://quasar.dev/vue-components/select#Example--Show-options-in-menu

      • Select the component (Simple filter)
      • Type something (i.e. ‘Ap’)
      • Select Apple
      • Select the component again
      • Try to change Apple using the keyboard
      1 Reply Last reply Reply Quote 0
      • Dennis van Beek
        Dennis van Beek last edited by

        My bad (RTFM)… Adding ‘fill-input hide-selected’ gives me the desired functionality!

        <q-select v-model="userInput" :label="label" use-input @filter="filter" @input="input" :options="options" fill-input hide-selected />
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post