Open Nikhil1489 opened 1 year ago
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch react-calendar-timeline@0.28.0 for the project I'm working on.
react-calendar-timeline@0.28.0
Here is the diff that solved my problem:
diff --git a/node_modules/react-calendar-timeline/lib/lib/utility/dom-helpers.js b/node_modules/react-calendar-timeline/lib/lib/utility/dom-helpers.js index 4637dbc..313aa25 100644 --- a/node_modules/react-calendar-timeline/lib/lib/utility/dom-helpers.js +++ b/node_modules/react-calendar-timeline/lib/lib/utility/dom-helpers.js @@ -32,7 +32,7 @@ function getParentPosition(element) { } function getSumScroll(node) { - if (node === document.body) { + if (node === document.body || !node.parentNode) { return { scrollLeft: 0, scrollTop: 0
This issue body was partially generated by patch-package.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
react-calendar-timeline@0.28.0
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.