Skip to content

Commit

Permalink
chore: task example filtering UX improvements. (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimkiv authored Jan 10, 2024
1 parent 92e465d commit 20b0d03
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@
}>;
} = pluginStates.colFilter;
$: showReset = Object.values($filterValues).some((v) => v.length > 0);
$: showReset = Object.values({ ...$filterValues, $filterValue }).some(
(v) => v.length > 0
);
</script>

<div class="flex items-center justify-between">
<div class="flex flex-1 items-center space-x-2">
<Input
placeholder="Filter tasks..."
class="h-8 w-[150px] lg:w-[250px]"
type="text"
type="search"
bind:value={$filterValue}
/>

Expand All @@ -52,6 +54,7 @@
{#if showReset}
<Button
on:click={() => {
$filterValue = "";
$filterValues.status = [];
$filterValues.priority = [];
}}
Expand Down

1 comment on commit 20b0d03

@vercel
Copy link

@vercel vercel bot commented on 20b0d03 Jan 10, 2024

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.