Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

424
Vistas
Multiselect Vue - Is there a way to bypass the option filtering method?

I m using the plugin Vue - Multiselect Js ( Github )

I currently have same code as in the Ajax example except my research api return me more data than Multiselect expect.

import Multiselect from 'vue-multiselect'
import { ajaxFindCountry } from './countriesApi'

export default {
  components: {
    Multiselect
  },
  data () {
    return {
      selectedCountries: [],
      countries: [],
      isLoading: false
    }
  },
  methods: {
    limitText (count) {
      return `and ${count} other countries`
    },
    asyncFind (query) {
      this.isLoading = true
      ajaxFindCountry(query).then(response => {
        this.countries = response
        this.isLoading = false
      })
    },
    clearAll () {
      this.selectedCountries = []
    }
  }
}

When I request "Hello world" to the Api, it can return "World hello" too, because it match any words (not only the successives chars).

Like in the example if you search barbuda you can found Antigua and Barbuda

barbuda

And if that not perfecly match (just adding space) Antigua and Barbuda option is hidden. (I know is not my API so options are not exactly same but in practice that my current result)

barbuda space


Is it possible to don't have exact same match between options and search ?

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

As mentioned in the example and docs, you can use :internal-search="false" prop on vue-multiselect component to disable the internal filtering logic.
By doing so, options will not be filtered anymore by the component internally and if required you can write your own custom logic to filter options.

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda