1
0
Fork 0
mirror of synced 2024-09-21 03:43:21 +12:00

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

View file

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