Skip to content

Commit

Permalink
fix(Table): missing default sort icon when overriding sort-button prop
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 27, 2023
1 parent 0815f68 commit 0f3fe0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/data/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<UButton
v-if="column.sortable"
v-bind="{ ...ui.default.sortButton, ...sortButton }"
:icon="(!sort.column || sort.column !== column.key) ? sortButton.icon : sort.direction === 'asc' ? sortAscIcon : sortDescIcon"
:icon="(!sort.column || sort.column !== column.key) ? (sortButton.icon || ui.default.sortButton) : sort.direction === 'asc' ? sortAscIcon : sortDescIcon"
:label="column[columnAttribute]"
@click="onSort(column)"
/>
Expand Down

1 comment on commit 0f3fe0d

@vercel
Copy link

@vercel vercel bot commented on 0f3fe0d Jun 27, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
ui.nuxtlabs.com
ui-nuxtlabs.vercel.app

Please sign in to comment.