react-asc 18.3.3 → 18.3.4

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.js CHANGED
@@ -739,7 +739,7 @@ var styles$q = {"selectContainer":"Select-module_selectContainer__2oizY","select
739
739
  styleInject(css_248z$q);
740
740
 
741
741
  const Select = (props) => {
742
- var _a;
742
+ var _a, _b, _c;
743
743
  const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, onChange, onKeyDown } = props;
744
744
  const [model, setModel] = React.useState('');
745
745
  const [hoverIndex, setHoverIndex] = React.useState(null);
@@ -876,7 +876,7 @@ const Select = (props) => {
876
876
  React__default['default'].createElement(ChevronDownSolidIcon, null))),
877
877
  isShow &&
878
878
  reactDom.createPortal(React__default['default'].createElement(React__default['default'].Fragment, null,
879
- React__default['default'].createElement("div", { className: styles$q.selectMenu, style: { top: (_a = selectConainter.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().y } },
879
+ React__default['default'].createElement("div", { className: styles$q.selectMenu, style: { left: (_a = selectConainter.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().x, top: (_b = selectConainter.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().y, width: (_c = selectConainter.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().width } },
880
880
  React__default['default'].createElement(List, null, options && options.map((option, index) => React__default['default'].createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), active: isActive(option) },
881
881
  multiple &&
882
882
  React__default['default'].createElement(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }),