ui-beyable 1.0.37 → 1.0.38
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/lib/cjs/index.js +2 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +2 -1
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -2874,10 +2874,11 @@ function Dropdown(_a) {
|
|
|
2874
2874
|
onClick: function (e) { return btnClick(e); },
|
|
2875
2875
|
ref: refButton
|
|
2876
2876
|
});
|
|
2877
|
+
var target = document.querySelector('#by_app_root') || document.body;
|
|
2877
2878
|
return (React.createElement(React.Fragment, null,
|
|
2878
2879
|
!buttonRef && buttonClone && buttonClone,
|
|
2879
2880
|
isOpen &&
|
|
2880
|
-
React.createElement(Portal,
|
|
2881
|
+
React.createElement(Portal, { target: target },
|
|
2881
2882
|
React.createElement("div", { className: cssClass.join(' '), tabIndex: -1, ref: refWrapper, onMouseDown: function (e) { return wrapperMouseDown(e); }, onClick: function (e) { return wrapperClick(e); } },
|
|
2882
2883
|
React.createElement("div", { className: dropdownStyles.dropdown_inner, id: idDropDown }, children)))));
|
|
2883
2884
|
}
|