Select row when opening row actions popover

This commit is contained in:
Andrew Kingston 2024-09-03 15:14:40 +01:00
parent 789df301cb
commit 0e6d903c74
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,7 @@
icon="ChevronDown" icon="ChevronDown"
cta cta
on:click={() => popover?.show()} on:click={() => popover?.show()}
on:click
> >
{text || "Action"} {text || "Action"}
</Button> </Button>
@ -36,6 +37,8 @@
{offset} {offset}
{animate} {animate}
resizable={false} resizable={false}
on:close
on:open
> >
<Menu> <Menu>
{#each buttons as button} {#each buttons as button}

View File

@ -92,6 +92,8 @@
offset={5} offset={5}
size="S" size="S"
animate={false} animate={false}
on:open={() => selectedRows.set({ [row._id]: true })}
on:close={() => selectedRows.set({})}
/> />
{:else} {:else}
{#each buttons as button} {#each buttons as button}