Skip to content

Commit

Permalink
Fix "Select all" buttons (#6209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpgreen2 authored Dec 5, 2024
1 parent 0740f14 commit 908f1ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
<!-- We fix the height to avoid a layout shift when the Search component is expanded. -->
<div class="flex items-center gap-x-1 cursor-pointer h-9">
{#if !isRowsEmpty}
<SelectAllButton {areAllTableRowsSelected} on:toggle-all-search-items />
<SelectAllButton
{areAllTableRowsSelected}
on:toggle-all-search-items={onToggleSearchItems}
/>
{/if}
{#if searchBarOpen || (searchText && searchText !== "")}
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@
{#if comparing === "dimension"}
<div class="flex items-center mr-4 gap-x-3" style:cursor="pointer">
{#if !isRowsEmpty}
<SelectAllButton {areAllTableRowsSelected} on:toggle-all-search-items />
<SelectAllButton
{areAllTableRowsSelected}
on:toggle-all-search-items={onToggleSearchItems}
/>
{/if}

{#if !searchToggle}
Expand Down

1 comment on commit 908f1ff

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.