Select row when opening row actions popover
This commit is contained in:
parent
789df301cb
commit
0e6d903c74
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue