bestguy / sveltestrap

Bootstrap 4 & 5 components for Svelte
https://sveltestrap.js.org
MIT License
1.3k stars 180 forks source link

`hidden` flag/attribute on Nav/NavItem #571

Open wutipong opened 10 months ago

wutipong commented 10 months ago

I'm trying to hide a NavItem based on a condition. When I assign the flag either true or false, the control disappears. Only I assigned it to undefined the control shows up.

Is it an expected behavior that, if hidden={false}, the control disappears?

I haven't tried with other control yet, but looks like at least both Nav and NavItem behave the same way.