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] - Autocomplete shows scroll indicator on top if items > 50 #4553

Open
GasparAdragna opened this issue Jan 13, 2025 · 1 comment
Open
Assignees
Labels
🐛 Type: Bug Something isn't working
Milestone

Comments

@GasparAdragna
Copy link

GasparAdragna commented Jan 13, 2025

NextUI Version

2.6.11

Describe the bug

On the Autocomplete component, if the length of the defaultItems is larger than 50 then top scroll shadow is shown.

Also it ignores the scrollShadowProps={{isEnabled: false}} prop

Your Example Website or App

https://codesandbox.io/p/devbox/tender-williams-67snd9?utm_medium=sandpack

Steps to Reproduce the Bug or Issue

  1. Create an Autocomplete component with +50 items.
  2. The top scroll shadow will appear
  3. Add the scrollShadowProps={{isEnabled: false}}
  4. The top scroll shadow will appear nonetheless

Expected behavior

As a user, i expect the top scroll shadow to not appear if its the first item and i did not scroll yet.

Screenshots or Videos

(top Autocomplete has less than 50 items, bottom has +50)

Grabacion.de.pantalla.2025-01-13.a.la.s.11.55.56.a.m.mov

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Jan 13, 2025

@jrgarciadev jrgarciadev added this to the v2.6.12 milestone Jan 13, 2025
@wingkwong wingkwong added 🐛 Type: Bug Something isn't working and removed Bug labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants