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
// Custom hook abstraction that handles calculating menuHeightCalc (defaults to menuMaxHeight) / handles executing callbacks/logic on menuOpen state change.
* Handle calculating and maintaining the menuHeight used by react-window.
11
16
* Handle scroll animation and callback execution when menuOpen = true.
12
17
* Handle resetting menuHeight back to the menuHeightDefault and callback execution when menuOpen = false.
13
18
* Use ref to track if the menuHeight was resized, and if so, set the menu height back to default (avoids uncessary renders) with call to setMenuHeight.
14
19
* Handle determining where to place the menu in relation to control - when menuPosition = 'top' or menuPosition = 'bottom' and there is not sufficient space below control, place on top.
0 commit comments