@bpmn-io/properties-panel 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +6 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -402,6 +402,11 @@ function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky)
|
|
|
402
402
|
let observer;
|
|
403
403
|
if (ref.current) {
|
|
404
404
|
const scrollContainer = minDom.query(scrollContainerSelector);
|
|
405
|
+
|
|
406
|
+
// TODO(@barmac): test this
|
|
407
|
+
if (!scrollContainer) {
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
405
410
|
observer = new Observer(entries => {
|
|
406
411
|
// The ScrollContainer is unmounted, do not update sticky state
|
|
407
412
|
if (scrollContainer.scrollHeight === 0) {
|
|
@@ -429,7 +434,7 @@ function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky)
|
|
|
429
434
|
observer.unobserve(ref.current);
|
|
430
435
|
}
|
|
431
436
|
};
|
|
432
|
-
}, [ref, scrollContainerSelector, setSticky]);
|
|
437
|
+
}, [ref.current, scrollContainerSelector, setSticky]);
|
|
433
438
|
}
|
|
434
439
|
|
|
435
440
|
/**
|