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 1.0.beta

    Framework
    3
    4
    276
    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.
    • K
      Kentoncloud last edited by

      Hi everyone,
      I have a very simple q-select that works in 0.17.* but is doesn’t work now in 1.0.beta
      <q-select v-model="user.address.province_id" :options="provinces" label="Province" class="q-ma-md" />

      The options="provinces" works fine it displays all the provinces however it doesn’t select automatically on the provinces array.

      Here is the picture.
      0_1550638446644_Capture.PNG

      Before it works fine on the previous version. Thanks.

      1 Reply Last reply Reply Quote 0
      • K
        Kentoncloud last edited by Kentoncloud

        `computed: {
        selectedProvince: {
        get () {
        return _.find(this.provinces, {
        value: this.user.address.province_id
        })
        },
        set (val) {
        this.setProvinceId(val)
        }
        },

        }`

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

          what doesn’t get selected? better refer to the docs https://v1.quasar-framework.org/vue-components/select. there are new ways not to get the value, the normal usage is the model getting the whole object. probably look into the emit-value props.

          1 Reply Last reply Reply Quote 0
          • M
            mpr last edited by

            @Kentoncloud I assume that 128 in your picture is the id of the province. Then you will probably need the new prop ‘map-options’.

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