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

Multiple sort in TreeTable is not working when passing multisortmeta props #1442

Closed
Sanbala opened this issue Jul 10, 2020 · 0 comments
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@Sanbala
Copy link

Sanbala commented Jul 10, 2020

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)

Current behavior
If the column is in ascending order initially during render, clicking on the column is not sorting it in descending order. Specifically descending is not happening on clicking column.

Expected behavior
If the column is in already sorted order, clicking on that should change the order.

Minimal reproduction of the problem with instructions

Steps to reproduce:
Pass onsort function and multisortmeta with "name" filed and sort order as 1(ascending) to treetable
click on the name column to sort it in descending order.. it is not working.

Example: https://codesandbox.io/s/primereact-test-i5ko1

Please tell us about your environment:
Windows

  • React version:
    latest version - 16+

  • PrimeReact version:
    latest version

Browser: [all ]
all

  • Language: [TypeScript X.X | ES6]
@Sanbala Sanbala changed the title Multiple sort in TreeTable is not working when passing multisortmeta as props Multiple sort in TreeTable is not working when passing multisortmeta props Jul 10, 2020
@mertsincan mertsincan self-assigned this Nov 9, 2020
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Nov 9, 2020
@mertsincan mertsincan added this to the 5.0.2 milestone Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants