[Vuejs]-Vue.js input function call | Samsung s9 device | function not calling

0👍

have you tried to check for length inside function?

<input id="searchInput" v-model="searchString" @input='onInput'">
methods: {
  onInput(value) {
    // if length less than 3 do nothing
    if(value.length <=3) return
    enter code here
  }
}

Leave a comment