mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(modal): do not render secondary button if secondaryButtonText is falsy
This commit is contained in:
parent
28e1c82851
commit
381e8aa4a8
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@
|
||||||
{button.text}
|
{button.text}
|
||||||
</Button>
|
</Button>
|
||||||
{/each}
|
{/each}
|
||||||
{:else}
|
{:else if secondaryButtonText}
|
||||||
<Button
|
<Button
|
||||||
kind="secondary"
|
kind="secondary"
|
||||||
class="{secondaryClass}"
|
class="{secondaryClass}"
|
||||||
|
|
|
@ -280,7 +280,7 @@
|
||||||
{button.text}
|
{button.text}
|
||||||
</Button>
|
</Button>
|
||||||
{/each}
|
{/each}
|
||||||
{:else}
|
{:else if secondaryButtonText}
|
||||||
<Button
|
<Button
|
||||||
kind="secondary"
|
kind="secondary"
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue