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

Reset order button is not working (v2) #384

Closed
1 task done
yildirim2189 opened this issue Aug 7, 2024 · 1 comment · Fixed by #402
Closed
1 task done

Reset order button is not working (v2) #384

yildirim2189 opened this issue Aug 7, 2024 · 1 comment · Fixed by #402
Assignees

Comments

@yildirim2189
Copy link

mantine-react-table version

2.0.0-beta

react & react-dom versions

18.2.0

Describe the bug and the steps to reproduce it

I encountered it locally but it can be repeated on the documentation page. After changing the column order, you can see that the "Reset Order" button does not work
https://v2.mantine-react-table.com/docs/guides/column-ordering-dnd

Minimal, Reproducible Example - (Optional, but Recommended)

https://v2.mantine-react-table.com/docs/guides/column-ordering-dnd

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

No, because I do not know how

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
@yildirim2189 yildirim2189 changed the title Reset order button is not working Reset order button is not working (v2) Aug 7, 2024
@dafer660
Copy link

Hello,

I do have the same problem, as the "Reset order" simple has a event handler noop() and I am not sure how to call table.resetColumnOrder(true) which should reset the state of the table.

Adding a console statement below, simply outputs the order state passed:
onColumnOrderChange: (updaterOrValue,) => console.log(updaterOrValue),

Thanks,
Daniel F.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants