chatscope / chat-ui-kit-react

Build your own chat UI with React components in few minutes. Chat UI Kit from chatscope is an open source UI toolkit for developing web chat applications.
https://chatscope.io
MIT License
1.32k stars 109 forks source link

Bug: null is not an object (evaluating 't.scrollTop') #131

Open j-krl opened 1 year ago

j-krl commented 1 year ago

I'm having an error pop up frequently in Sentry but am not able to reproduce. I'm interested if it's happening to anyone else. It's inside of Perfect Scroll. As far as I can tell from session replays it sometimes happens when a user clicks the send button, but not totally sure about that.

The stack trace is:

TypeError: null is not an object (evaluating 't.scrollTop')
  at updateGeometry(./node_modules/@chatscope/chat-ui-kit-react/dist/es/Scroll/perfect-scrollbar.esm.js:257:37)
  at applyTouchMove(./node_modules/@chatscope/chat-ui-kit-react/dist/es/Scroll/perfect-scrollbar.esm.js:752:5)
  at easingLoop(./node_modules/@chatscope/chat-ui-kit-react/dist/es/Scroll/perfect-scrollbar.esm.js:867:9)