Skip to content

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

Closed

Description

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):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions