react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Edit component title not working as expected when aside property is present

Open jbek7 opened this issue 3 years ago • 2 comments

What you were expecting:

<Edit title={<PostTitle />} aside={<CustomAside />}>...</Edit> should only show title from <PostTitle> as described in here: Edit#title

What happened instead: Instead it's generating a title from the Resources that are used in my custom aside component. image

Steps to reproduce: Create an Edit view with an aside property and the aside component should use <SimpleShowLayout> and it should use some other resources in it.

insert short code snippets here

Other information:

Environment Mac OSX

  • React-admin version: 3.19.11
  • Last version that did not exhibit the issue (if applicable): the same issue
  • React version: 18.0.8
  • Browser: Chrome
  • Stack trace (in case of a JS error):

jbek7 avatar Aug 22 '22 17:08 jbek7

As a workaround I had to label my resources as an empty string - that works only for the ones that don't have a list option.

jbek7 avatar Aug 22 '22 20:08 jbek7

The title prop is working correctly in tests and existing apps. Please include a reproduction based on the simple example codesandbox to show the bug you describe.

fzaninotto avatar Aug 23 '22 06:08 fzaninotto

No news for some time, closing.

fzaninotto avatar Oct 26 '22 14:10 fzaninotto