@trackunit/react-form-components 1.11.29 → 1.11.30
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/index.cjs.js +7 -3
- package/index.esm.js +7 -3
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -1135,9 +1135,7 @@ const MultiSelectMenuItem = ({ label, onClick, selected, focused, "data-testid":
|
|
|
1135
1135
|
className: "mr-1 flex items-center",
|
|
1136
1136
|
size: "medium",
|
|
1137
1137
|
})
|
|
1138
|
-
: optionPrefix, prefix: jsxRuntime.jsx(Checkbox, { checked: selected, className: "gap-x-0", disabled: disabled, onChange: () => null,
|
|
1139
|
-
e.stopPropagation();
|
|
1140
|
-
}, readOnly: false }), selected: selected }));
|
|
1138
|
+
: optionPrefix, prefix: jsxRuntime.jsx(Checkbox, { checked: selected, className: "gap-x-0", disabled: disabled, onChange: () => null, readOnly: false }), selected: selected }));
|
|
1141
1139
|
};
|
|
1142
1140
|
|
|
1143
1141
|
/**
|
|
@@ -1844,6 +1842,12 @@ const useSelect = (props) => {
|
|
|
1844
1842
|
// Setting menuPortalTarget to 'null' specifies that the dropdown should be rendered within
|
|
1845
1843
|
// the parent element instead of 'document.body'.
|
|
1846
1844
|
menuPortalTarget: portalTarget,
|
|
1845
|
+
// Use 'fixed' positioning when portaling to document.body for correct positioning
|
|
1846
|
+
// in complex scroll contexts (e.g., iframes, nested scroll containers).
|
|
1847
|
+
// 'absolute' (the default) can cause positioning issues because it adds scroll offsets
|
|
1848
|
+
// that may not match the actual scroll context when the portal target differs from
|
|
1849
|
+
// the scroll container.
|
|
1850
|
+
menuPosition: portalTarget === document.body ? "fixed" : "absolute",
|
|
1847
1851
|
isSearchable: interactable ? (isSearchable ?? true) : false,
|
|
1848
1852
|
// Disable react-select's built-in scroll blocking as we handle it ourselves in onMenuOpen/onMenuClose
|
|
1849
1853
|
// to prevent layout shifts caused by not accounting for existing body padding in the react-select implementation.
|
package/index.esm.js
CHANGED
|
@@ -1134,9 +1134,7 @@ const MultiSelectMenuItem = ({ label, onClick, selected, focused, "data-testid":
|
|
|
1134
1134
|
className: "mr-1 flex items-center",
|
|
1135
1135
|
size: "medium",
|
|
1136
1136
|
})
|
|
1137
|
-
: optionPrefix, prefix: jsx(Checkbox, { checked: selected, className: "gap-x-0", disabled: disabled, onChange: () => null,
|
|
1138
|
-
e.stopPropagation();
|
|
1139
|
-
}, readOnly: false }), selected: selected }));
|
|
1137
|
+
: optionPrefix, prefix: jsx(Checkbox, { checked: selected, className: "gap-x-0", disabled: disabled, onChange: () => null, readOnly: false }), selected: selected }));
|
|
1140
1138
|
};
|
|
1141
1139
|
|
|
1142
1140
|
/**
|
|
@@ -1843,6 +1841,12 @@ const useSelect = (props) => {
|
|
|
1843
1841
|
// Setting menuPortalTarget to 'null' specifies that the dropdown should be rendered within
|
|
1844
1842
|
// the parent element instead of 'document.body'.
|
|
1845
1843
|
menuPortalTarget: portalTarget,
|
|
1844
|
+
// Use 'fixed' positioning when portaling to document.body for correct positioning
|
|
1845
|
+
// in complex scroll contexts (e.g., iframes, nested scroll containers).
|
|
1846
|
+
// 'absolute' (the default) can cause positioning issues because it adds scroll offsets
|
|
1847
|
+
// that may not match the actual scroll context when the portal target differs from
|
|
1848
|
+
// the scroll container.
|
|
1849
|
+
menuPosition: portalTarget === document.body ? "fixed" : "absolute",
|
|
1846
1850
|
isSearchable: interactable ? (isSearchable ?? true) : false,
|
|
1847
1851
|
// Disable react-select's built-in scroll blocking as we handle it ourselves in onMenuOpen/onMenuClose
|
|
1848
1852
|
// to prevent layout shifts caused by not accounting for existing body padding in the react-select implementation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.30",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"react-hook-form": "7.62.0",
|
|
16
16
|
"tailwind-merge": "^2.0.0",
|
|
17
17
|
"@trackunit/css-class-variance-utilities": "1.10.23",
|
|
18
|
-
"@trackunit/react-components": "1.14.
|
|
18
|
+
"@trackunit/react-components": "1.14.30",
|
|
19
19
|
"@trackunit/ui-icons": "1.10.23",
|
|
20
20
|
"@trackunit/shared-utils": "1.12.23",
|
|
21
21
|
"@trackunit/ui-design-tokens": "1.10.24",
|