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

DataTable - Preserving sort arrow on default sort #236

Closed
mnovaciccroz opened this issue Mar 27, 2024 · 2 comments
Closed

DataTable - Preserving sort arrow on default sort #236

mnovaciccroz opened this issue Mar 27, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mnovaciccroz
Copy link

mnovaciccroz commented Mar 27, 2024

Basic information

  • Tiller version: 1.7.3
  • Module: -
  • Link to the complete executable reproducer if available (e.g. GitHub Repo): -

Additional information

  • none

Enhancement description

  • Keep the sort arrow displayed when the default sort is selected and the defaultSortBy prop is set.

Current behaviour

  • The arrow indicating the initial sort is cleared after no other sort is set.

Wanted behaviour

  • Always display the arrow indicating the initial sort when it's not sorted by any other column.

Possible workarounds

  • none
@mnovaciccroz mnovaciccroz added the enhancement New feature or request label Mar 27, 2024
@jtomic-croz
Copy link
Collaborator

@mnovaciccroz pls update description in english

@LukaFilipovic99
Copy link
Collaborator

@mnovaciccroz I'm not sure if I understand your issue. As I know defaultSortBy prop is used only for declaring how DataTable should be sorted in it's initial state and in that case arrow will be displayed. After, you can sort table in another direction by clicking on column or even disable sorting. And if sorting is disabled, arrow will not be displayed which is wanted behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants