nkbt/react-collapse

Cannot read property 'clientHeight' of undefined in collapse.js

Closed this issue · 1 comments

If I collapse my div and then revert it back, it gets data from database but before that it generates an error that "Cannot read property 'clientHeight' of undefined collapse.js".
Why it doesn't get the clientHeight property of div properly?

Got a fix by using try catch for this.wrapper.clientHeight statement and assigning it a default height instead of going undefined.