Skip to content

Fix Arrayinput multiple reset #10716

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

erwanMarmelab
Copy link
Contributor

@erwanMarmelab erwanMarmelab commented Apr 30, 2025

Problem

you can’t properly reset your form (with an ArrayInput) twice.

Solution

How To Test

  1. Open https://react-admin-storybook.vercel.app/?path=/story/ra-ui-materialui-input-arrayinput--reset
  2. Add an empty line
  3. Click the reset button
  4. Add an empty line
  5. Click the reset button

or

  1. Open https://react-admin-storybook.vercel.app/?path=/story/ra-ui-materialui-input-arrayinput--reset
  2. Add an empty line
  3. fill it
  4. Click the reset button
  5. Add an empty line
  6. fill it
  7. Click the reset button

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

@djhidjhi added RFRReady For Reviewand removed WIPWork In Progresslabels May 6, 2025
@erwanMarmelab
Copy link
Contributor Author

good for me 👍

Sign up for free to join this conversation on . Already have an account? Sign in to comment
Labels
RFRReady For Review
Development

Successfully merging this pull request may close these issues.

2 participants