-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
TabbedForm and TabbedShowLayout tab navigation is broken #9468
Comments
Yep, I saw that bug, too, only a bit later. This is a regression, we'll work on fixing it soon. |
As far as I understand, the |
Turns out this is due to 2 regressions introduced in react-router v6.19.0 and v6.20.0. I have opened an issue on their repo to request for a fix: remix-run/react-router#11053 Until this is fixed, you will need to use version v6.18.0 at most, which does not show the issue. Thanks for the report! |
Thanks for further investigation! |
I think that using |
I see the same bug for |
I have the same problem in the TabbedForm component |
So the root cause for this bug is a couple regressions that landed in react-router 6.19 and 6.20.
Unfortunately, the react-router team doesn't want to revert these breaking changes published in minor releases. They closed the issues in their GitHub repository. We have no other option than to forbid recent react-router versions in react-admin's dependencies. |
@fzaninotto maybe they are going to reopen them both, first it is! |
Fixed by #9480, where we forbid recent react-router versions in react-admin's dependencies. We may relax these requirements in the future if the react-router fixes the problem upstream. |
Not sure if this is related, but after upgrading to RA 5.5.0 and upgrading React versions i seem to be getting the same problem as originally reported |
@mpriestau I confirm updating to react-router v7 (which is possible since RA v5.5) brings back the same bug. |
This may related to this error. |
What you were expecting:
I've an
<Edit />
component View page to edit a record and I use it in combination with<TabbedForm />
component.I expect to switch among
<TabbedForm.Tab />
s and edit the fields of the record.What happened instead:
The
<TabbedForm.Tab />
s beyond the first one are not reachable, instead first<TabbedForm.Tab />
keeps being visible. What also happens in the url is that, every time I click a<TabbedForm.Tab />
, the url keeps adding the index of the clicked<TabbedForm.Tab />
to the end of the url. Application is not broken though, so no javascript error occurs.Steps to reproduce:
The application is based on Nextjs and ReactAdmin, but it is private, so unsharable.
What I can say is that I've a CRUD scenario, with an Edit view based on Tabs and since the upgrade from version 4.14.3 to 4.16.0 happened, the Application has this behaviour.
Related code:
I can't really show examples, but an official react-admin demo example https://github.com/marmelab/react-admin/tree/master/examples/simple visible at this link
https://stackblitz.com/github/marmelab/react-admin/tree/master/examples/simple shows also that current implementation has the same issue. To reproduce it in the example app do the following steps:
Other information:
/
Environment
The text was updated successfully, but these errors were encountered: