[General]: Field deletion in the dynamic form example is not working properly. #1396
Closed
4 of 7 tasks
Labels
bug
Something isn't working
Is there an existing issue for this?
Package/Plugin version
9.2.1
Platforms
Flutter doctor
Flutter doctor
Minimal code example
Code sample
Current Behavior
Each added text field has an icon 1 which indicates that, on click, the respective added text field will be deleted.
But, only the last one is deleted 2.
Expected Behavior
Clicking on a delete icon 1 should remove only the corresponding form text field, even if it was not the last one added.
Steps To Reproduce
Run the script provided
Fill the title field
Add a field and fill it with the value Content0
Add a field and fill it with the value Content1
Add a field and fill it with the value Content2
Press the button Submit
The result is:
Click on the delete button related to "Content1" field:
Press the button Submit and notice that the field with Content2 was deleted, not the one with Content1
Aditional information
No response
The text was updated successfully, but these errors were encountered: