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

    How to edit the multiple selected options in <q-select>, while selected option displayed is from the backend data?

    Help
    3
    3
    1265
    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
      Darshan S last edited by Darshan S

      I want to edit the particular row in the data table. On click of any row, a modal ( <q-modal> ) will appear inside which a q-select element is there, which shows the multiple pre-selected values with respect to the backend data. I am able to show the previously selected items in the q-select , but not able to edit it. If I try to select other option in q-select then an error is shown:

      Uncaught TypeError: model.push is not a function

      my Template:
      <q-select multiple inverted color="dark" stack-label="Roles" separator v-model="multipleSelect" v-bind:options="options1" />
      Please guide me to proceed further.

      1 Reply Last reply Reply Quote 0
      • G
        gilbertro last edited by

        Darshan, were you able to solve this problem ?

        1 Reply Last reply Reply Quote 0
        • C
          ChrisO last edited by

          Posting a solution for this issue in case anyone ran into it like I did, and stumbled on this post. In my case the problem was created by declaring the model field as an empty string. Declaring it as either “null” (as per the Quasar documentation) or an empty array fixes the issue.

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