Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(DataTable): return correct sort direction in sort action callback #8048

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Mar 9, 2021

Closes #4704

This PR returns the correct sort direction to the handleSortBy callback function in the DataTable's built in state manager

Testing / Reviewing

Confirm that the table sort parameters passed down to a user-provided handleSortBy callback accurately reflects the sort state now

@emyarod emyarod requested a review from a team as a code owner March 9, 2021 20:22
@emyarod emyarod requested review from tw15egan and dakahn March 9, 2021 20:22
@emyarod emyarod force-pushed the 4704-return-correct-sort-direction-in-datatable-sort-header branch from 6e0ebd8 to a9aeec9 Compare March 9, 2021 20:23
@emyarod emyarod changed the title fix(DataTable): return correct sort direction on sort header click fix(DataTable): return correct sort direction on sort action callback Mar 9, 2021
@emyarod emyarod changed the title fix(DataTable): return correct sort direction on sort action callback fix(DataTable): return correct sort direction in sort action callback Mar 9, 2021
@emyarod emyarod mentioned this pull request Mar 9, 2021
87 tasks
@netlify
Copy link

netlify bot commented Mar 9, 2021

Deploy preview for carbon-elements ready!

Built with commit 6e0ebd8

https://deploy-preview-8048--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Mar 9, 2021

Deploy preview for carbon-components-react ready!

Built with commit 6e0ebd8

https://deploy-preview-8048--carbon-components-react.netlify.app

@netlify
Copy link

netlify bot commented Mar 9, 2021

Deploy preview for carbon-elements ready!

Built with commit 5adf99c

https://deploy-preview-8048--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Mar 9, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 5adf99c

https://deploy-preview-8048--carbon-components-react.netlify.app

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✅

Screen Shot 2021-03-09 at 1 33 37 PM

@kodiakhq kodiakhq bot merged commit 6dae104 into carbon-design-system:main Mar 11, 2021
@emyarod emyarod deleted the 4704-return-correct-sort-direction-in-datatable-sort-header branch March 12, 2021 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send correct value of sortDirection on the handleSortBy callback
3 participants