nkbt / react-collapse

Component-wrapper for collapse animation with react-motion for elements with variable (and dynamic) height
MIT License
1.13k stars 113 forks source link

Don't call clearTimeout through global #289

Closed oyvinmar closed 3 years ago

oyvinmar commented 3 years ago

This fixes an issue I had using vite with react-collapse. Since vite bundles the dependencies as native esm, it uses the code from /src. I'm unsure why it bundles src and not lib. But the problem is that global.clearTimeout result in an error since global is not replaced (like it is in the webpack build).