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

New Category popover Save button submits the whole form instead of the popover form #7711

Closed
slax57 opened this issue May 19, 2022 · 0 comments · Fixed by #7715
Closed

New Category popover Save button submits the whole form instead of the popover form #7711

slax57 opened this issue May 19, 2022 · 0 comments · Fixed by #7715
Labels

Comments

@slax57
Copy link
Contributor

slax57 commented May 19, 2022

What you were expecting:
When I add a new Category while editing a Post in the simple demo, the new Category is created and I stay on the Post edition form.

What happened instead:
When I click on the Save button inside the "New category" popover, the whole Post is submitted and I am redirected to the Post List, instead of staying on the Post Edit page.

Steps to reproduce:

  1. Go to the simple demo https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple
  2. Edit a Post
  3. In the Miscellanous tab, click on Category to edit Categories
  4. Click "Create"
  5. Fill in a new category name, and click "Save"
  6. You are redirected to the List instead of staying on the Edit page

Environment

  • React-admin version: 4.0.4
  • Last version that did not exhibit the issue (if applicable):
  • React version: 18.2.0
  • Browser: Chrome
  • Stack trace (in case of a JS error):
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.

1 participant