ui-beyable 1.0.37 → 1.0.38-beta.1

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