Skip to content

[Doc] Fix <BulkActionsToolbar selectAllButton> only accepts an element - #10954

Merged
djhi merged 2 commits into
masterfrom
doc-fix-selectAllButton
Sep 25, 2025
Merged

djhi merged 2 commits into
masterfrom
doc-fix-selectAllButton

Conversation

@slax57

@slax57 slax57 commented Sep 23, 2025 •

Copy link
Copy Markdown
Contributor

Problem

<BulkActionsToolbar selectAllButton> only accepts an element, but doc gives an exemple where a React Component is passed, which doesn't work (and actually even TS complains about)

Solution

Fix the doc.

Also, update the props type to accept a ReactNode while we're at it.

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@slax57 slax57 added the RFR Ready For Review label Sep 23, 2025
@slax57 slax57 changed the title [no ci] [Doc] Fix <BulkActionsToolbar selectAllButton> only accepts an element [Doc] Fix <BulkActionsToolbar selectAllButton> only accepts an element Sep 23, 2025

@djhi djhi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any good reason to not accept a ReactNode btw. Shouldn't we change it?

@slax57 slax57 changed the title [Doc] Fix <BulkActionsToolbar selectAllButton> only accepts an element [Fix] Update <BulkActionsToolbar> to accept a Component Type as selectAllButton prop Sep 25, 2025
@slax57
slax57 force-pushed the doc-fix-selectAllButton branch from d5f1860 to 984f19b Compare September 25, 2025 08:19
@slax57 slax57 changed the title [Fix] Update <BulkActionsToolbar> to accept a Component Type as selectAllButton prop [Doc] Fix <BulkActionsToolbar selectAllButton> only accepts an element Sep 25, 2025
@djhi
djhi merged commit 8f9bdcd into master Sep 25, 2025
15 checks passed
@djhi
djhi deleted the doc-fix-selectAllButton branch September 25, 2025 08:37
@djhi djhi added this to the 5.11.4 milestone Sep 25, 2025

This branch was successfully deployed

1 active deployment
Preview – react-admin-storybook — 984f19b2 Deployed Sep 25, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants