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 map-options and filter is not working together well

    Help
    3
    4
    2123
    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.
    • T
      turigeza last edited by

      Would somebody be able to point out what I am messing up. Or is this a bug? Basically I would expect never to see the value displayed in q-select. Yet when I load the page this is exactly what happens. One sees the value of the model instead of a label. In this case 'goog'.

      Please see pen
      https://codepen.io/turigeza/pen/QPObae?editors=1010

      Any idea ? Thank you !

      Btw all I am trying to achieve is how a native html select would work. I need to see labels displayed and values used for the model. I also need to be able to jump to the option when I type or filter in this case.

      1 Reply Last reply Reply Quote 0
      • spyke113
        spyke113 last edited by

        https://github.com/quasarframework/quasar/issues/3797

        1 Reply Last reply Reply Quote 1
        • T
          turigeza last edited by turigeza

          @spyke113 Thank you for suggesting the computed property in your pen here:
          https://codepen.io/spyke113/pen/bJEyEJ

          So the solution is to use a computed property for the model with a getter and setter.
          This is what I was after a simple select with a search box which uses key value pairs for its options.
          https://codepen.io/turigeza/pen/rbpLRJ

          IMO this is such a common use case it should be one of the examples in the docs. No?

          1 Reply Last reply Reply Quote 0
          • prashant
            prashant last edited by

            I created a Base component for q-select with map option but can’t set the default value to it can any one check what is the issue.?

            https://codesandbox.io/s/little-hooks-c3nsk?file=/src/pages/SelectMap.vue

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