Reset filters when reopening table filter button

This commit is contained in:
Andrew Kingston 2024-10-24 07:24:45 +01:00
parent 13d0c0f734
commit 9c7e3cd95e
No known key found for this signature in database
1 changed files with 9 additions and 1 deletions

View File

@ -52,7 +52,15 @@
{filterCount ? `Filter: ${filterCount}` : "Filter"}
</ActionButton>
<Drawer bind:this={drawer} title="Filtering" on:drawerHide forceModal>
<Drawer
bind:this={drawer}
title="Filtering"
on:drawerHide
on:drawerShow={() => {
localFilters = filters
}}
forceModal
>
<Button
cta
slot="buttons"