Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Navbar shouldHideOnScroll causes Navbar to vanish or get stuck #3319

Closed
yelwin-d3 opened this issue Jun 25, 2024 · 2 comments
Closed

Comments

@yelwin-d3
Copy link

NextUI Version

in all version

Describe the bug

In all versions, I am seeing the Navbar component with shouldHideOnScroll set to true, resulting in the Navbar disappearing after a few scrolls up and down. Alternatively, if it doesn't disappear, it reverts to sticky behavior. This issue occurs even on the NextUI component documentation page under the 'Hide on scroll' section. A page refresh restores it.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

1- Go to https://nextui.org/docs/components/navbar#hide-on-scroll
2- Start scrolling up and down a few times
3- Navbar disappears or goes to sticky
4- Tested on Chrome, Edge, and both mobile/desktop.

Expected behavior

As a user, the Navbar should hide when I scroll down, but reappear as soon as I scroll back up. It should always be positioned at the very top if I haven't scrolled or if I've scrolled all the way back to the top.

Screenshots or Videos

335593235-da3c0ed9-8f98-406b-ac15-f90da6c2327c.mp4

Operating System Version

macOS, Window

Browser

Chrome

Copy link

linear bot commented Jun 25, 2024

@wingkwong
Copy link
Member

Duplicate - #3139

@wingkwong wingkwong closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants