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 showing option value instead of label

    Framework
    2
    2
    5997
    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.
    • R
      reath last edited by

      With this code

        <q-select v-model="bot.exchangeApi"
                        @blur="$v.bot.exchangeApi.$touch"
                        :options="exchangeApis"
                        label="Exchange API"
                        emit-value
                        stack-label/>
      
          this.exchangeApis = [{
                label: 'first',
                value: 'firstVALUE'
              }]
      

      This is OK (first is shown)
      778ec0c4-2e92-4de3-bca8-8401b2693356-image.png

      But after I select first the input is populated with firstValue
      da86a1e3-41b4-4142-aab8-6226fd2b29e3-image.png

      How can I make it to show first in the input, I want firstValue only in the v-model (which is so).

      patryckx 1 Reply Last reply Reply Quote 0
      • patryckx
        patryckx @reath last edited by

        @reath I think you’re missing map-options:

        https://quasar.dev/vue-components/select#Example--Map-options

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