@trackunit/react-form-components 0.1.115 → 0.1.116
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 +4 -1
- package/index.esm.js +4 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2353,7 +2353,10 @@ const Select = (props) => {
|
|
|
2353
2353
|
styles: customStyles,
|
|
2354
2354
|
tabSelectsValue: false,
|
|
2355
2355
|
blurInputOnSelect: !isMulti,
|
|
2356
|
-
|
|
2356
|
+
// This configuration allows for more flexible positioning control of the dropdown.
|
|
2357
|
+
// Setting menuPortalTarget to 'null' specifies that the dropdown should be rendered within
|
|
2358
|
+
// the parent element instead of 'document.body'.
|
|
2359
|
+
menuPortalTarget: props.menuPortalTarget !== undefined ? props.menuPortalTarget : document.body,
|
|
2357
2360
|
isSearchable: disabled || readOnly ? false : isSearchable,
|
|
2358
2361
|
menuShouldBlockScroll: true,
|
|
2359
2362
|
menuShouldScrollIntoView: true,
|
package/index.esm.js
CHANGED
|
@@ -2334,7 +2334,10 @@ const Select = (props) => {
|
|
|
2334
2334
|
styles: customStyles,
|
|
2335
2335
|
tabSelectsValue: false,
|
|
2336
2336
|
blurInputOnSelect: !isMulti,
|
|
2337
|
-
|
|
2337
|
+
// This configuration allows for more flexible positioning control of the dropdown.
|
|
2338
|
+
// Setting menuPortalTarget to 'null' specifies that the dropdown should be rendered within
|
|
2339
|
+
// the parent element instead of 'document.body'.
|
|
2340
|
+
menuPortalTarget: props.menuPortalTarget !== undefined ? props.menuPortalTarget : document.body,
|
|
2338
2341
|
isSearchable: disabled || readOnly ? false : isSearchable,
|
|
2339
2342
|
menuShouldBlockScroll: true,
|
|
2340
2343
|
menuShouldScrollIntoView: true,
|