PR feedback. Fix for the popover menu not sticking to the add fields button

This commit is contained in:
Dean 2024-07-03 16:56:37 +01:00
parent e472dc826c
commit 6ecaaba146
1 changed files with 17 additions and 15 deletions

View File

@ -288,21 +288,23 @@
{/each}
{#if table && schemaFields}
<div
class="add-fields-btn"
class:empty={Object.is(editableFields, {})}
bind:this={popoverAnchor}
>
<ActionButton
icon="Add"
fullWidth
on:click={() => {
customPopover.show()
}}
disabled={!schemaFields}
>Add fields
</ActionButton>
</div>
{#key editableFields}
<div
class="add-fields-btn"
class:empty={Object.is(editableFields, {})}
bind:this={popoverAnchor}
>
<ActionButton
icon="Add"
fullWidth
on:click={() => {
customPopover.show()
}}
disabled={!schemaFields}
>Add fields
</ActionButton>
</div>
{/key}
{/if}
<Popover