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

265
Vistas
TypeError: Cannot set property target of #<Event> which has only a getter Ant Design input

I'm using the antd input component with the allowClear prop as in the example below:

    <Input
      allowClear
      value={value}
      defaultValue={value}
      onChange={e => {
        setValue(e.target.value);
      }}
      placeholder={`Search`}
    />

enter image description here

When you pass the allowClear a little x button appear in the input so you can clear it, the problem is that every time I click the x button I get the following error:

TypeError: Cannot set property target of #<Event> which has only a getter
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I managed to fix it, I just had an old version, updating to the latest one I didn't encounter this problem anymore.

about 4 years ago · Juan Pablo Isaza 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