Skip to content

Conversation

edison-cy-yang
Copy link
Contributor

Motivations

There is a console error Unknown event handler property onSort. It will be ignored. when DataTableSortableHeader is used. It is caused by spreading all the props onto DataTableHeaderCell, in which onSort doesn't exist

Changes

Added

Changed

Deprecated

Removed

Fixed

  • onSort, direction, and children props of DataTableSortableHeader are not being passed into DataTableHeaderCell

Security

Testing

Load up storybook DataTable -> Web -> Composable -> Sortable and confirm the console error does not exist

Changes can be
tested via Pre-release


In Atlantis we use Github's built in pull request reviews.

Copy link

cloudflare-workers-and-pages bot commented Oct 15, 2025

Deploying atlantis with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2b909ad
Status: ✅  Deploy successful!
Preview URL: https://e14e166a.atlantis.pages.dev
Branch Preview URL: https://job-139587-fix-unknown-on-so.atlantis.pages.dev

View logs

@jdeichert jdeichert self-requested a review October 16, 2025 18:15
Copy link
Contributor

@jdeichert jdeichert left a comment

Choose a reason for hiding this comment

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

Just the one issue and then I'll approve 👍

Copy link
Contributor

@jdeichert jdeichert left a comment

Choose a reason for hiding this comment

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

Looks good!

@edison-cy-yang edison-cy-yang merged commit 48a0111 into master Oct 16, 2025
15 checks passed
@edison-cy-yang edison-cy-yang deleted the JOB-139587-fix-unknown-on-sort-property-on-data-table-sortable-header branch October 16, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants