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] QSelect @change broken in 0.15?

    Help
    4
    6
    2459
    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
      jeffatpf last edited by Shone

      <q-select v-model="chartPeriod" :options="chartPeriodOptions"  @change="chartPeriodChanged"></q-select>
      

      data defined as:

      chartPeriod: 36, chartPeriodOptions: [{label: '1 Year', value: 12}, {label: '3 Years', value: 36}],

      The chartPeriodChanged() method was called with 0.14.x and prior when a select item is selected, the method is not being called with 0.15.x.

      Any help would be appreciated.

      1 Reply Last reply Reply Quote 0
      • N
        Nicholas last edited by

        Maybe try @change.native?

        1 Reply Last reply Reply Quote 0
        • J
          jeffatpf last edited by

          Thanks, I tried @change.native with no success. This feels like a pretty significant issue - I’ll dig into the Quasar source later today.

          1 Reply Last reply Reply Quote 0
          • J
            jeffatpf last edited by

            I replaced @change with @input to resolve this issue. This might want to be clarified in the documentation as it’s a breaking change from 0.14

            F 1 Reply Last reply Reply Quote 0
            • L
              leopiccionia last edited by

              From 0.14->0.15 migration guide:

              “In previous versions you would listen for @change event to detect changes. Now you can listen to @input for immediate changes or @change for lazy update. Vue v-model.lazy support is a pending change, so until then you can use the equivalent form (details below).”

              http://quasar-framework.org/guide/quasar-upgrade-guide.html

              1 Reply Last reply Reply Quote 0
              • F
                fatima.yas @jeffatpf last edited by

                @jeffatpf thank you. i use your solution☺

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