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

Always redirecting to first page when make an edit or delete to an item in the list #4902

Closed
gamemn02 opened this issue Jun 5, 2020 · 2 comments · Fixed by #4936
Closed
Assignees
Labels

Comments

@gamemn02
Copy link

gamemn02 commented Jun 5, 2020

What you were expecting:

when you open another page in a list other than the first page then chose to edit or delete an item, it should stay in the current page to allow editing other items without changing the page again
What happened instead:

after the edit or delete is done, the list view is directed to the first page
Steps to reproduce:

create any sample list with many pages.
run the app.
open the second page in the list.
select an item and click the delete bulk action button.
Related code:

this not my sandbox but it can be used to reproduce the problem
https://codesandbox.io/s/nice-dawn-95btl
Other information:

i am not sure if this is a bug or a normal behavior. if it is not a bug consider closing the report
Environment

  • React-admin version: 3.6.0, 3.5.5, 3.0.0-alpha.0
  • React version: 16.13.1
  • Browser: chrome 83.0.4103.97 (Official Build) (64-bit) and in codesandbox.io
@djhi
Copy link
Collaborator

djhi commented Jun 9, 2020

Hi and thanks for the report. I can reproduce the issue on the simple example as well

@djhi djhi added the bug label Jun 9, 2020
@LaMarseillaise
Copy link

I have also encountered this issue, specifically with editing from the list page. While this is addressed, can you suggest any work-arounds?

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

Successfully merging a pull request may close this issue.

4 participants