@7shifts/sous-chef 3.44.8 → 3.44.9

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
@@ -9518,7 +9518,10 @@ var useSelectField = function useSelectField(_ref) {
9518
9518
  var selectProps = {
9519
9519
  closeMenuOnScroll: function closeMenuOnScroll(e) {
9520
9520
  console.log('Scroll event detected.');
9521
- return true;
9521
+ if (!e.target) {
9522
+ return false;
9523
+ }
9524
+ return !isScrollingTheSelectMenu(e.target);
9522
9525
  },
9523
9526
  componentsProps: {
9524
9527
  testId: testId,