• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: how to change one input field inside map in react?

Resolved: how to change one input field inside map in react?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have 3 input fields but changing one is affecting every input field. I tried adding keys to the fields as well.
Code:
Codesandbox link: https://codesandbox.io/s/basic-antd-4-16-9-forked-p7r5wf?file=/index.js

Answer:

You need to set your name unique for each input item. For example:
<Form.Item name={“startRange”+index}> <Form.Item name={“endRange”+index}>

If you have better answer, please add a comment about this, thank you!

reactjs
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘crm.email’ doesn’t exist (Connection: mysql, SQL: select count(*) as aggregate from `email`

02/04/2023

Resolved: Regex: Curly braces in reverse? Match X characters before a string?

02/04/2023

Resolved: build.gradle.kts task to return string

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.