Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

259
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!