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

BulkDeleteButton not clearing selected state in ReferenceManyField #8328

Closed
mediafreakch opened this issue Oct 28, 2022 · 1 comment · Fixed by #8358
Closed

BulkDeleteButton not clearing selected state in ReferenceManyField #8328

mediafreakch opened this issue Oct 28, 2022 · 1 comment · Fixed by #8358
Assignees
Labels

Comments

@mediafreakch
Copy link
Contributor

What you were expecting:
Bulk selection in Datagrid of ReferenceManyField disappears after BulkDelete action.

What happened instead:
Bulk selection remains even though element(s) have been sucessfully deleted

Steps to reproduce:

  1. Open https://iuxnw.sse.codesandbox.io/#/posts/6/show (it's from the react-admin v4 simple CodeSandbox example)
  2. Select a comment via checkbox
  3. Delete selected comment via bulk delete action

Related code:
https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple

Environment

  • React-admin version: 4.4.4
  • Last version that did not exhibit the issue (if applicable): -
  • React version: 17
  • Browser: Any
  • Stack trace (in case of a JS error): -
@slax57 slax57 added the bug label Oct 28, 2022
@slax57
Copy link
Contributor

slax57 commented Oct 28, 2022

Reproduced, thanks!

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