ui
ui copied to clipboard
fix: Issue 25 - Menubar component breaks if you move around too fast
Issue https://github.com/shadcn/ui/issues/25 - Menubar component breaks if you move around too fast
The animate-in tailwind class was causing the bug here so I have removed it from the MenubarContent component.
Not sure why it was happening as it is an uncommon issue so I've come up empty searching for other people who have faced this issue.
I'll continue to find a work around to where the animate-in can be kept on the component.
For now, I was thinking one possibility could be to add a prop that gives the option to the user whether they want to enable animation? and add a warning in the docs letting the user know that any fast movement will cause the menu to freeze.
Someone is attempting to deploy a commit to a Personal Account owned by @shadcn on Vercel.
@shadcn first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated |
|---|---|---|---|---|
| ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add your feedback | Jan 29, 2023 at 10:24AM (UTC) |
I believe this is fixed now. I'm going to close this issue but feel free to re-open if not. Thanks so much for helping with the fix.