-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Refactor and fixes dropdown bugs #8807
base: main
Are you sure you want to change the base?
Conversation
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.
PR Summary
This PR implements a comprehensive fix for nested dropdown menu issues by adding proper click-outside event handling and dropdown positioning.
- Added unique
listenerId
parameters to alluseListenClickOutside
hooks across components to properly scope click-outside events - Set
dropdownStrategy="absolute"
andusePortal
inMenuItemWithOptionDropdown
to fix positioning and z-index issues - Added debug logging to track click event propagation and dropdown behavior
- Fixed potential event conflicts in nested dropdown scenarios by properly managing event listeners
- Improved click-outside handling in
RightDrawer
by using dynamiclistenerId
based on drawer page
💡 (4/5) You can add custom instructions or style guidelines for the bot here!
28 file(s) reviewed, 19 comment(s)
Edit PR Review Bot Settings | Greptile
Fixes MenuItemWithOptionDropdowns are bugged #8788
Fixes Unify dropdown behavior with floating-ui #8544
Fixes Regression - Margin top 2px #8793
Fixes Sort Order Dropdown #8791
Fixes Small fixes for the options menu #8789
Fixes Vertical Scroll Missing in "Company" Filter Dropdown #8827
Also :
No scroll and search container is shrinking
Icon buttons under dropdown are visible without blur :
(Not dropdown but let's fix it also)
Button create new without padding
Container is expanding
Also :
Font is cut at bottom ?
The component should flip and not resize in this situation
Also :
Bug with Phones input, the input stays open after value has been persisted, it should close, also bugs when editing, deleting, the value is persisted but in the dropdown the value stays the same.
Also :