You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next on the list of priorities will be a focus on addressing the plethora of issues regarding Menu behavior including scrolling, positioning, and toggling open. This list is an attempt at capturing and categorizing all of the open existing issues.
There is a WIP branch that introduces Popper to remedy many of the existing issues, but this consolidated summary of items should be helpful in confirming what it does and does not solve.
Issues with scroll events on the MenuList #1530 Feature request for onMenuScrollToBottom for offset scroll handler #2862 onMenuScrollToBottom does not trigger if menu was not scrollable on mount #3232 onMenuScrollToBottom does not trigger if scroll handle was dragged #3926 onMenuScrollToBottom doesn't work on mobile browser #4518 Scroll options become misaligned in the menu pane (unable to reproduce bug) #4640 Scrollbar jumping on non touch capable devices
Issues with focused and selected Menu options #2848 Feature request to disable focusing first option #3344 , #4013 Selected value not focused/visible when using defaultMenuIsOpen or menuIsOpen #3488, #4370 When isMulti option is selected, menu auto focuses on first item in menu instead of retaining index of selected option #3648 Not scrolling to selected group option on menu open #4505 Wrong option is focused when searching within array when options are re-ordered #4539 Select scrolls window instead of scrollable parent div when opening menu #4703 Feature Request to allow more control where focusedOption is scrolled to when opened
Issues with isMenuOpen and onMenuOpen #3375 defaultMenuIsOpen doesn't trigger onMenuOpen #3708 menuIsOpen doesn't work when menuPortal is set #4243 menuListRef is null when referenced in onMenuOpen #4623 onMenuClose fires on blur even though menu is closed #4749 defaultMenuIsOpen doesn't work with menuPortalTarget
Issues with auto sizing and menuPlacement #3473 Scrolling into view from inside a scroll container #4108, #4415 auto menuPlacement does not fill available space of scrollable parent #4146, #4493 Menu list height remains unchanged after options loaded #4434 available height not calculated correctly when using menuPortalTarget #4615 menuShouldScrollIntoView does not scroll all menu into view
Issues with positioning when fixed or portalled Menu #3533 Menu position incorrect when browser/viewport is zoomed (fixed by #5256) #4088, #4159 Fixed position menu doesn't scroll with parent container/page (fixed by #5256) #4336 Menu misaligned when using menuPortalTarget and menuPlacement auto (fixed by #5256) #4812 MenuList with simplebar-react and menuPlacement="auto" never uses placement="top"
Needs further investigation #4618 onMenuScrollToBottom keeps the same reference to the function while menuIsOpen This appears to be related to useCallback and state management instead of react-select issue
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Next on the list of priorities will be a focus on addressing the plethora of issues regarding Menu behavior including scrolling, positioning, and toggling open. This list is an attempt at capturing and categorizing all of the open existing issues.
There is a WIP branch that introduces Popper to remedy many of the existing issues, but this consolidated summary of items should be helpful in confirming what it does and does not solve.
Issues with scroll events on the MenuList
#1530 Feature request for onMenuScrollToBottom for offset scroll handler
#2862 onMenuScrollToBottom does not trigger if menu was not scrollable on mount#3232 onMenuScrollToBottom does not trigger if scroll handle was dragged
#3926 onMenuScrollToBottom doesn't work on mobile browser
#4518 Scroll options become misaligned in the menu pane (unable to reproduce bug)
#4640 Scrollbar jumping on non touch capable devices
Issues with focused and selected Menu options
#2848 Feature request to disable focusing first option
#3344 , #4013 Selected value not focused/visible when using defaultMenuIsOpen or menuIsOpen
#3488, #4370 When isMulti option is selected, menu auto focuses on first item in menu instead of retaining index of selected option
#3648 Not scrolling to selected group option on menu open
#4505 Wrong option is focused when searching within array when options are re-ordered
#4539 Select scrolls window instead of scrollable parent div when opening menu
#4703 Feature Request to allow more control where focusedOption is scrolled to when opened
Issues with isMenuOpen and onMenuOpen
#3375 defaultMenuIsOpen doesn't trigger onMenuOpen
#3708 menuIsOpen doesn't work when menuPortal is set
#4243 menuListRef is null when referenced in onMenuOpen
#4623 onMenuClose fires on blur even though menu is closed
#4749 defaultMenuIsOpen doesn't work with menuPortalTarget
Issues with auto sizing and menuPlacement
#3473 Scrolling into view from inside a scroll container
#4108, #4415 auto menuPlacement does not fill available space of scrollable parent
#4146, #4493 Menu list height remains unchanged after options loaded
#4434 available height not calculated correctly when using menuPortalTarget
#4615 menuShouldScrollIntoView does not scroll all menu into view
Issues with positioning when fixed or portalled Menu
#3533 Menu position incorrect when browser/viewport is zoomed (fixed by #5256)#4088, #4159 Fixed position menu doesn't scroll with parent container/page (fixed by #5256)#4336 Menu misaligned when using menuPortalTarget and menuPlacement auto (fixed by #5256)#4812 MenuList with simplebar-react and menuPlacement="auto" never uses placement="top"
Needs further investigation
#4618 onMenuScrollToBottom keeps the same reference to the function while menuIsOpenThis appears to be related to useCallback and state management instead of react-select issue
Beta Was this translation helpful? Give feedback.
All reactions