@radix-ui/react-select 2.4.2-rc.1791897977948 → 2.4.2-rc.1791984254107

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
@@ -95,7 +95,7 @@ var import_react_use_callback_ref = require("@radix-ui/react-use-callback-ref");
95
95
  var import_react_use_controllable_state = require("@radix-ui/react-use-controllable-state");
96
96
  var import_react_use_layout_effect = require("@radix-ui/react-use-layout-effect");
97
97
  var import_react_visually_hidden = require("@radix-ui/react-visually-hidden");
98
- var import_aria_hidden = require("aria-hidden");
98
+ var import_primitive2 = require("@radix-ui/primitive");
99
99
  var import_react_remove_scroll = require("react-remove-scroll");
100
100
  var import_jsx_runtime = require("react/jsx-runtime");
101
101
  var Position = {
@@ -422,7 +422,10 @@ var SelectContentImpl = /* @__PURE__ */ React.forwardRef(
422
422
  const firstItemFoundRef = React.useRef(false);
423
423
  const firstItemTextFoundRef = React.useRef(false);
424
424
  React.useEffect(() => {
425
- if (content) return (0, import_aria_hidden.hideOthers)(content);
425
+ if (content) {
426
+ const ownerDocument = content.ownerDocument;
427
+ return (0, import_primitive2.hideOthers)(/* @__PURE__ */ new Set([content]), ownerDocument.body);
428
+ }
426
429
  }, [content]);
427
430
  (0, import_react_focus_guards.useFocusGuards)();
428
431
  const focusFirst = React.useCallback(
@@ -858,7 +861,8 @@ var SelectViewport = /* @__PURE__ */ React.forwardRef(
858
861
  // This won't work in vertical writing modes, so we'll need to
859
862
  // revisit this if/when that is supported
860
863
  // https://developer.chrome.com/blog/vertical-form-controls
861
- overflow: "hidden auto",
864
+ overflowX: "hidden",
865
+ overflowY: "auto",
862
866
  ...viewportProps.style
863
867
  },
864
868
  onScroll: (0, import_primitive.composeEventHandlers)(viewportProps.onScroll, (event) => {