Closed dawidmachon closed 1 year ago
Use it like so:
<svelte:fragment slot="left">
{#if variable == true}
<NavbarBackLink text="Back" onClick={() => history.back()} />
{/if}
</svelte:fragment>
Use it like so:
<svelte:fragment slot="left">
{#if variable == true}
<NavbarBackLink text="Back" onClick={() => history.back()} />
{/if}
</svelte:fragment>
Hello!
Unfortunately with the subnavbar there will be whitespace where otherwise the content would be. Is there anything I can do about that?
This is my code:
`
Check that this is really a bug
Reproduction link
.
Bug description
Hi, in below code, when you press right button in navbar, then code in if statement should be shown. Then means, backlink arrow should be placed on left side, but it's shown on right side. Can anyone know why conditions in svelte, messing with slot placement for navbars?
after clicking a button on right to change variable for if condition:
Expected Behavior
NavbarBackLink should be render on left side. When we remove if condition, then everything works fine. So NavBarBack button is placed correctly.
Without if:
Actual Behavior
No response
Konsta UI version
1.0.2
Platform/Target and Browser Versions
windows, chrome dev 108.0.5359.10 (official) (64-bit)
Validations
Would you like to open a PR for this bug?