@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.
package/dist/index.js CHANGED
@@ -6364,12 +6364,12 @@ var PaneOverlay = function PaneOverlay(_ref) {
6364
6364
  setPosition = _useState[1];
6365
6365
  React.useEffect(function () {
6366
6366
  var handleScroll = function handleScroll() {
6367
- console.log('Scrolling');
6367
+ console.log('Scrolling 2');
6368
6368
  onToggleDropdown();
6369
6369
  };
6370
- document.addEventListener('scroll', handleScroll);
6370
+ window.addEventListener('scroll', handleScroll, true);
6371
6371
  return function () {
6372
- document.removeEventListener('scroll', handleScroll);
6372
+ window.removeEventListener('scroll', handleScroll, true);
6373
6373
  };
6374
6374
  }, [onToggleDropdown]);
6375
6375
  useOnClickOutsideRole('dialog', onToggleDropdown);