@7shifts/sous-chef 3.48.0 → 3.48.1

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
@@ -6349,6 +6349,13 @@ var calculateMaxHeight = function calculateMaxHeight(triggerPosition, customMaxH
6349
6349
  }
6350
6350
  return customMaxHeight !== undefined && customMaxHeight < calculatedMaxHeight ? customMaxHeight : calculatedMaxHeight;
6351
6351
  };
6352
+ var isScrollingSelectFields = function isScrollingSelectFields(scrollEvent) {
6353
+ var target = scrollEvent.target;
6354
+ var firstChild = target && target.firstChild ? target.firstChild : null;
6355
+ var firstChildId = firstChild ? firstChild.id : '';
6356
+ var isScrollingSelectField = firstChildId === null || firstChildId === void 0 ? void 0 : firstChildId.includes('react-select');
6357
+ return isScrollingSelectField;
6358
+ };
6352
6359
 
6353
6360
  function useOnClickOutsideRole(role, cb) {
6354
6361
  React__default.useEffect(function () {
@@ -6404,7 +6411,7 @@ var PaneOverlay = function PaneOverlay(_ref) {
6404
6411
  React.useEffect(function () {
6405
6412
  var handleScroll = function handleScroll(e) {
6406
6413
  var _paneRef$current;
6407
- if (e.target !== paneRef.current && !((_paneRef$current = paneRef.current) !== null && _paneRef$current !== void 0 && _paneRef$current.contains(e.target))) {
6414
+ if (e.target !== paneRef.current && !((_paneRef$current = paneRef.current) !== null && _paneRef$current !== void 0 && _paneRef$current.contains(e.target)) && !isScrollingSelectFields(e)) {
6408
6415
  onToggleDropdown();
6409
6416
  }
6410
6417
  };