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

    Using Select Component @change event not triggered v0.17.14

    Help
    3
    3
    919
    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.
    • J
      jeimz173 last edited by

      Hi i am having a problem using quasar select i tried to put @change method but its not working what should i do? please help me thank you! but in @input its working… is this still an issue? or something?

        <q-select v-model="sale.product" float-label="Select Product" :options="productOptions" @change="setSelectedProductInfo()"/>
      
      methods () {
      setSelectedProductInfo() {
            console.log('triggered')
            let vm = this
            var product = _.find(vm.products, ['_id', vm.sale.product])
      
            vm.selectedProduct = product
          },
      
      ...
      
      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by metalsadman

        @jeimz173 use @input. https://quasar-framework.org/components/select.html#Lazy-Input

        1 Reply Last reply Reply Quote 0
        • s.molinari
          s.molinari last edited by

          Also, this is a good example to use a watched property for v-model.

          Scott

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