dialog: fix duplicate controls caused by flip issue
This commit is contained in:
@@ -270,11 +270,10 @@
|
||||
controlsAlign === 'end' && 'justify-end'
|
||||
]}
|
||||
>
|
||||
{#if controls && typeof controls === 'function'}{@render controls()}{:else}
|
||||
{#if controls && typeof controls === 'function'}{@render controls()}{:else if controls?.flip}
|
||||
{#if controls.ok !== null}
|
||||
{@render dialogOkButton(getState(), controls.ok)}
|
||||
{/if}
|
||||
{#if controls?.flip}
|
||||
{#if controls.cancel !== null}
|
||||
{@render dialogCancelButton(getState(), controls.cancel)}
|
||||
{/if}
|
||||
@@ -286,7 +285,6 @@
|
||||
{@render dialogOkButton(getState(), controls.ok)}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user