check for parentNode before using#896
Conversation
|
@developer-ocansey — Flagging this for your review. Recommendation: The bug still exists — apply as a quick fix to the current codebase The bug
The current code (line ~33 of export function getSumScroll(node: HTMLElement): { scrollLeft: number; scrollTop: number } {
if (node === document.body) {
return { scrollLeft: 0, scrollTop: 0 }
} else {
const parent = getSumScroll(node.parentNode as HTMLElement)
// ...
}
}Note that the sibling function Why it can't merge directlyThe PR targets the old I'd suggest just applying the fix directly to |
in the getSumScroll function in the dom-helpers file

Error Traceback: