Open tamdc opened 1 year ago
Sorry for the delay...there's no prop callback, but when level 3 opens or closes it will actually set the lvl2MenuState._childPopupState
after a tick. So you could set CSS based upon lvl2MenuState._childPopupState?.open ? valueIfOpen : valueIfClosed
.
(Note: _childPopupState
starts with an underscore because I didn't exactly intend for people to rely on it, but I can't stop you 😄)
I need to catch the state change of submenu level 3 to change CSS property of lvl2. Each has their own popupState.
Do we have a prop callback that whenever the popupState change we can trigger the function passed through?