Skip to content

Commit

Permalink
fix(Table): colspan of empty and loading is wrong when selection …
Browse files Browse the repository at this point in the history
…enabled (#284)
  • Loading branch information
9uenther committed Jun 13, 2023
1 parent a733c13 commit 786d776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/data/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</tr>

<tr v-if="loadingState && loading">
<td :colspan="columns.length">
<td :colspan="columns.length + (modelValue ? 1 : 0)">
<slot name="loading-state">
<div :class="ui.loadingState.wrapper">
<UIcon v-if="loadingState.icon" :name="loadingState.icon" :class="ui.loadingState.icon" aria-hidden="true" />
Expand All @@ -48,7 +48,7 @@
</tr>

<tr v-else-if="emptyState && !rows.length">
<td :colspan="columns.length">
<td :colspan="columns.length + (modelValue ? 1 : 0)">
<slot name="empty-state">
<div :class="ui.emptyState.wrapper">
<UIcon v-if="emptyState.icon" :name="emptyState.icon" :class="ui.emptyState.icon" aria-hidden="true" />
Expand Down

1 comment on commit 786d776

@vercel
Copy link

@vercel vercel bot commented on 786d776 Jun 13, 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.