(e: TransitionEvent)
| 143 | |
| 144 | let panel = domRef.current; |
| 145 | let onTransitionEnd = (e: TransitionEvent) => { |
| 146 | if (getEventTarget(e) === panel && e.propertyName === 'width') { |
| 147 | expand(); |
| 148 | } |
| 149 | }; |
| 150 | panel?.addEventListener('transitionend', onTransitionEnd); |
| 151 | // The expanded width may equal the collapsed width, in which case no transitionend arrives. |
| 152 | let timeout = setTimeout(expand, ANIMATION_DURATION + 50); |
nothing calls this directly
no test coverage detected