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.es.js CHANGED
@@ -731,7 +731,7 @@ var styles$q = {"selectContainer":"Select-module_selectContainer__2oizY","select
731
731
  styleInject(css_248z$q);
732
732
 
733
733
  const Select = (props) => {
734
- var _a;
734
+ var _a, _b, _c;
735
735
  const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, onChange, onKeyDown } = props;
736
736
  const [model, setModel] = useState('');
737
737
  const [hoverIndex, setHoverIndex] = useState(null);
@@ -868,7 +868,7 @@ const Select = (props) => {
868
868
  React.createElement(ChevronDownSolidIcon, null))),
869
869
  isShow &&
870
870
  createPortal(React.createElement(React.Fragment, null,
871
- React.createElement("div", { className: styles$q.selectMenu, style: { top: (_a = selectConainter.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().y } },
871
+ React.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 } },
872
872
  React.createElement(List, null, options && options.map((option, index) => React.createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), active: isActive(option) },
873
873
  multiple &&
874
874
  React.createElement(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }),