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

Save with redirect=false is broken #7029

Closed
fzaninotto opened this issue Dec 23, 2021 · 2 comments · Fixed by #7041
Closed

Save with redirect=false is broken #7029

fzaninotto opened this issue Dec 23, 2021 · 2 comments · Fixed by #7041
Labels

Comments

@fzaninotto
Copy link
Member

fzaninotto commented Dec 23, 2021

The PostCreate form has a "save and add" button. When tested manually, it fails to empty the form after submission. The e2e tests don't detect this regression because they navigate to the creation form via the URL rather than via the menu.

Test via this URL: https://react-admin-marmelab.vercel.app/#/posts/create

The bug occurs both on master and next

image

@fzaninotto fzaninotto added the bug label Dec 23, 2021
@fzaninotto fzaninotto changed the title Save with redirect=false is broken in next Save with redirect=false is broken Dec 23, 2021
@andrico1234
Copy link
Contributor

andrico1234 commented Dec 24, 2021

Am I right in thinking that this is similar behaviour exhibited here?

Granted the example in the linked issue is when saving on an Edit page, not a Create page

@fzaninotto
Copy link
Member Author

No, the problem is different: here it's about triggering a reset of the form values after successful submission.

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.

2 participants