-
Hey, thanks for the awesome project. I am using the navigation drawer in version 5.0.50 and encountered following issue: When I open the drawer and click a link to a section (e.g. "#about") it jumps there and keeps the drawer open. However when I click on a link with just "/" it scrolls to the top and closes the drawer. Do I have to manually implement the scroll-to behaviour for sections or is there something already built-in? many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes that's the expected behavior of HTML pages. |
Beta Was this translation helpful? Give feedback.
For smooth scroll, use
<html class="scroll-smooth">
https://tailwindcss.com/docs/scroll-behavior
To close the drawer, uncheck the checkbox. The checkbox controls the state.
Let me know if you have any questions