PR feedback. Fix for the popover menu not sticking to the add fields button
This commit is contained in:
parent
e472dc826c
commit
6ecaaba146
|
@ -288,21 +288,23 @@
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
{#if table && schemaFields}
|
{#if table && schemaFields}
|
||||||
<div
|
{#key editableFields}
|
||||||
class="add-fields-btn"
|
<div
|
||||||
class:empty={Object.is(editableFields, {})}
|
class="add-fields-btn"
|
||||||
bind:this={popoverAnchor}
|
class:empty={Object.is(editableFields, {})}
|
||||||
>
|
bind:this={popoverAnchor}
|
||||||
<ActionButton
|
>
|
||||||
icon="Add"
|
<ActionButton
|
||||||
fullWidth
|
icon="Add"
|
||||||
on:click={() => {
|
fullWidth
|
||||||
customPopover.show()
|
on:click={() => {
|
||||||
}}
|
customPopover.show()
|
||||||
disabled={!schemaFields}
|
}}
|
||||||
>Add fields
|
disabled={!schemaFields}
|
||||||
</ActionButton>
|
>Add fields
|
||||||
</div>
|
</ActionButton>
|
||||||
|
</div>
|
||||||
|
{/key}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<Popover
|
<Popover
|
||||||
|
|
Loading…
Reference in New Issue