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] "TypeError: this.$refs.newref.validate is not a function"

    Help
    1
    2
    1324
    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.
    • abdulakhad
      abdulakhad last edited by metalsadman

      <q-select
              v-for="(items, key) in attributeNameValues"
              :key="key"
              class="col-12 q-mt-md"
              square
              dense
              ref="newref"
              outlined
              v-model="selected[key]"
              @input="updateSlide"
              :prefix="key + ' :'"
              :options="attributeNameValues[key]"
              :rules="[val => val != undefined || $t('required')]"
              lazy-rules="ondemand"
             />
      
      this.$refs.newref.validate();
      

      what could be the cause of this error
      98edc4c9-6c9b-45cc-97c8-e235240de664-image.png

      1 Reply Last reply Reply Quote 0
      • abdulakhad
        abdulakhad last edited by

        for (var v = 0; v < this.$refs.newref.length; v++){
        this.$refs.newref[v].validate();
        }
        I found the answer

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