@7shifts/sous-chef 3.44.10 → 3.44.11

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
@@ -6342,7 +6342,7 @@ var DropdownPane = function DropdownPane(props) {
6342
6342
  if (!isOpen) {
6343
6343
  return null;
6344
6344
  }
6345
- return React__default.createElement(Portal, null, React__default.createElement(PaneOverlay, _extends({}, props)));
6345
+ return React__default.createElement(PaneOverlay, _extends({}, props));
6346
6346
  };
6347
6347
  var PaneOverlay = function PaneOverlay(_ref) {
6348
6348
  var _classNames;
@@ -6362,18 +6362,6 @@ var PaneOverlay = function PaneOverlay(_ref) {
6362
6362
  var _useState = React.useState({}),
6363
6363
  position = _useState[0],
6364
6364
  setPosition = _useState[1];
6365
- React.useEffect(function () {
6366
- var handleScroll = function handleScroll(e) {
6367
- var _paneRef$current;
6368
- if (e.target !== paneRef.current && !((_paneRef$current = paneRef.current) !== null && _paneRef$current !== void 0 && _paneRef$current.contains(e.target))) {
6369
- onToggleDropdown();
6370
- }
6371
- };
6372
- window.addEventListener('scroll', handleScroll, true);
6373
- return function () {
6374
- window.removeEventListener('scroll', handleScroll, true);
6375
- };
6376
- }, [onToggleDropdown, paneRef]);
6377
6365
  useOnClickOutsideRole('dialog', onToggleDropdown);
6378
6366
  React.useLayoutEffect(function () {
6379
6367
  if (!triggerRef || !('current' in triggerRef) || !(triggerRef !== null && triggerRef !== void 0 && triggerRef.current) || !(paneRef !== null && paneRef !== void 0 && paneRef.current)) {