fix: prevent duplicate icon rendering in Button component when iconOnly is true
This commit is contained in:
parent
2cf29275b6
commit
713886a290
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@
|
|||
<span class="accessory">
|
||||
{@render leftAccessory()}
|
||||
</span>
|
||||
{:else if hasLeftIcon}
|
||||
{:else if hasLeftIcon && !iconOnly}
|
||||
<span class="accessory">
|
||||
<Icon name={icon} size={iconSizes[size]} />
|
||||
</span>
|
||||
|
|
@ -122,7 +122,7 @@
|
|||
<span class="accessory">
|
||||
{@render rightAccessory()}
|
||||
</span>
|
||||
{:else if hasRightIcon}
|
||||
{:else if hasRightIcon && !iconOnly}
|
||||
<span class="accessory">
|
||||
<Icon name={icon} size={iconSizes[size]} />
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue