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

163
Vistas
Selectize js on calling change method giving undefined error when using with React Final Form

This is the error message I'm getting :

Cannot read properties of undefined (reading 'change')

enter image description here

This is how I'm calling selectize change method :

this.selectize.on('change', this.onChange);

Here, onChange is a prop, which calls the onSubmit method of react-final-form, and onSubmit definition is as below :

 const onSubmit = ({ content, url }, { reset }) => { 
    if (content) {
      const action = !content.get('campaignId') ? addContent : addCampaign;

      return action(content).then(() => {
        reset();

        if (contentSelector && contentSelector.current) {
          contentSelector.current.exclude(
            content.get('id') || content.get('campaignId')
          );
          contentSelector.current.selectize.blur();
        }
      });
    }

    if (url) {
      return addExternal(url).then(reset);
    }

    return null;
  };
about 4 years ago · Santiago Gelvez
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