-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 section overlap due to incorrect itemHeight
with virtualization
#4568
Comments
@wingkwong please check |
Issue cause has been pinpointed to virtualization- disabling it resolves the issue. |
@jrgarciadev Please assign it to me! |
The issue occurs because an incorrect heroui/packages/components/autocomplete/src/use-autocomplete.ts Lines 460 to 464 in a1cc378
Since autocomplete.virtualization.fix.height.movI’ll update the docs to note that Just a side note, I also tried dynamically measuring the list item height and applying it to the virtualizer, but it didn’t work as expected... 😓 |
itemHeight
with virtualization
@ryo-manba What if not all items have |
As it stands, the only option is to set |
NextUI Version
2.6.11
Describe the bug
AutocompleteSection
, when containing too manyAutocompleteItem
s, seems to have the category text (and occasional items) overlap. This behaviour is pertinent to all tested major browsers (Chromium-based browsers, Safari, Firefox).Your Example Website or App
https://stackblitz.com/~/github.com/thatkev/autocomplete-bug
https://github.com/thatkev/autocomplete-bug
Steps to Reproduce the Bug or Issue
Expected behavior
I expect that
AutocompleteSection
andAutocompleteItem
are appropriately spaced, and do not overlap.Screenshots or Videos
Operating System Version
macOS Sequoia 15.3 Beta (24D5034f)
Browser
Chrome
The text was updated successfully, but these errors were encountered: