vue-good-table icon indicating copy to clipboard operation
vue-good-table copied to clipboard

disable the none sort direction

Open benounnas opened this issue 3 years ago • 0 comments

Issue Type

  • [x] Enhancement Request

Specs

What version are you using? V2.21.10

browser Mozilla Firefox

Expected Behavior

onSortChange params will contain direction asc or desc only

Actual Behavior

What actually happened? on third press the direction was set to none

Suggestion

Add custom direction to order by, i couldn't even deactivate the 'none' behavior unless i catch the value, it triggered some errors to my backend.

<vue-good-table
  :columns="columns"
  :rows="rows"
  :sort-options="{
    enabled: true,
    defaultSort: false
  }">
</vue-good-table>

{sort: 'field', direction: 'none'} should be optional

benounnas avatar Jun 14 '22 12:06 benounnas