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

    Disable q-select with :after property handler

    Help
    1
    2
    327
    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
      kyriediculous last edited by

      Hello,

      I have a basic single-selecion q-select component. I wish to disable the field after a selection has been made and confirmed after clicking the button defined in the :after property.
      How exactly can I achieve this?

      <q-select
        float-label="Repo Owner"
        v-model="pr.owner"
        :options="repoOwners"
        :after="[{
          icon: 'arrow_forward',
          handler () {
            formProgress.ownerSelected = true
            //disable field ????
          }
        }]"
        />
      

      Thank you!

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

        A little bit of sleep does wonders for the mind.

        <q-select
          float-label="Repo Owner"
          v-model="pr.owner"
          :options="repoOwners"
          :disable="formProgress.ownerSelected"
          :after="[{
            icon: 'arrow_forward',
            handler () {
              formProgress.ownerSelected = true
            }
          }]"
          />
        1 Reply Last reply Reply Quote 0
        • First post
          Last post