Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[@mantine/form] Form reorderListItem doesn't update validation errors #3827

Closed
Alf-Melmac opened this issue Mar 19, 2023 · 1 comment
Closed
Labels
help wanted Contributions from community are welcome

Comments

@Alf-Melmac
Copy link
Contributor

Alf-Melmac commented Mar 19, 2023

What package has an issue

@mantine/form

Describe the bug

While reordering list items I would expect the errors to update accordingly. Means that the errors are also reorder. Currently, an error remains at the index where the validation failed.
In the codesandbox click in the second input to trigger the on blur validation and swap the form list items with the button afterwards

What version of @mantine/hooks page do you have in package.json?

6.0.2

If possible, please include a link to a codesandbox with the reproduced problem

https://codesandbox.io/s/form-list-reorder-validation-update-yuyw1x

Do you know how to fix the issue

None

Are you willing to participate in fixing this issue and create a pull request with the fix

Yes

Possible fix

Reorder the error state the same way the values change

@Alf-Melmac Alf-Melmac changed the title Form reorderListItem doesn't update validation errors [@mantine/form] Form reorderListItem doesn't update validation errors Mar 19, 2023
@rtivital rtivital added help wanted Contributions from community are welcome and removed review required labels Mar 19, 2023
@rtivital
Copy link
Member

Fixed in 6.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions from community are welcome
Projects
None yet
Development

No branches or pull requests

2 participants