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

    [Solved] q-select on change event not triggered

    Framework
    3
    5
    13294
    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.
    • S
      Stanley last edited by Stanley

      Is there an example to trigger q-select change event?
      I am using below code, but it seems not work.

      <q-select :value="selValue" @change.native="onValueChange"
                :options="options" />
      
      methods: {
          onValueChange () {
              // something change
          }
      }
      
      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by metalsadman

        <q-select :value="model" @change="val => { onValueChange() }" :options="options" /> https://quasar-framework.org/components/select.html#Vue-Events

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

          I believe for a single select, you can also just use @input. @change is more for multiple selects and first acting on the final (changed) selection, once all selections are made and the popover is closed. Or put another way, both @change and @input will be fired at the same time, with a single select.

          Scott

          S 1 Reply Last reply Reply Quote 4
          • S
            Stanley @metalsadman last edited by

            @metalsadman thanks!

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

              @s-molinari thanks for the more detailed explanation!

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