@7shifts/sous-chef 3.44.3 → 3.44.5

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.
@@ -6360,12 +6360,12 @@ var PaneOverlay = function PaneOverlay(_ref) {
6360
6360
  setPosition = _useState[1];
6361
6361
  useEffect(function () {
6362
6362
  var handleScroll = function handleScroll() {
6363
- console.log('Scrolling');
6363
+ console.log('Scrolling 2');
6364
6364
  onToggleDropdown();
6365
6365
  };
6366
- document.addEventListener('scroll', handleScroll);
6366
+ window.addEventListener('scroll', handleScroll, true);
6367
6367
  return function () {
6368
- document.removeEventListener('scroll', handleScroll);
6368
+ window.removeEventListener('scroll', handleScroll, true);
6369
6369
  };
6370
6370
  }, [onToggleDropdown]);
6371
6371
  useOnClickOutsideRole('dialog', onToggleDropdown);