Skip to content

Fix <DataTable> does not allow to put a button in the column's header#10802

Merged
djhi merged 1 commit intomasterfrom
fix-datatable-header-button
Jun 25, 2025
Merged

Fix <DataTable> does not allow to put a button in the column's header#10802
djhi merged 1 commit intomasterfrom
fix-datatable-header-button

Conversation

@slax57
Copy link
Copy Markdown
Contributor

@slax57 slax57 commented Jun 25, 2025

Problem

<DataTable> does not allow to put a button in the column's header (the pointer events are disabled)

Solution

Remove unnecessary wrapper <TableSortLabel disabled>

How To Test

http://localhost:9010/?path=/story/ra-ui-materialui-list-datatable--header-button

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why) -> not really relevant to me as this is purely CSS issue
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@djhi djhi added this to the 5.9.1 milestone Jun 25, 2025
@djhi djhi merged commit efcfd1f into master Jun 25, 2025
15 checks passed
@djhi djhi deleted the fix-datatable-header-button branch June 25, 2025 08:02
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