Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

272
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda