-
Notifications
You must be signed in to change notification settings - Fork 115
fix dropdown bug #541
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
fix dropdown bug #541
Conversation
🦋 Changeset detectedLatest commit: 5fb89c4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like a lot of changes to fix a simple thing? Can you try my suggestion on the original code? The less changes the better considering we want to stay compatible with upstream
</div> | ||
|
||
{/* Dropdown items - Use windowing for large lists */} | ||
<div className="max-h-[300px] overflow-y-auto"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a gut feeling, didn't try it but would removing only the overflow-y-auto
class here solve not the issue as well, without the need for all the other changes being done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't work, unless you want the search bar to also scroll within the container? I'll try and clean it up, it wasn't a lot of changes but the diff makes it look like it is, I just had to remove a wrapped div
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, clear! The div looked huge but makes sense then indeed! Can you drop a comment somewhere near it with a kilocode_change marker that says that it was removed intentionally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier loves 🧌 -ing diffs, alas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to add a changeset :)
) : ( | ||
<div className="py-1"> | ||
{groupedOptions.map((option, index) => { | ||
// Memoize rendering of each item type for better performance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessarily removed comment
) | ||
} | ||
|
||
// Use stable keys for better reconciliation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessarily removed comment
Context
Fixes #465
-->
Screenshots
Before

After
