@aloudata/aloudata-design 1.0.0 → 1.0.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/dist/Select/index.js +2 -2
- package/package.json +1 -1
package/dist/Select/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import { FoldDownFill } from '@aloudata/icons-react';
|
|
|
32
32
|
import { Select as AntdSelect } from 'antd';
|
|
33
33
|
import classNames from 'classnames';
|
|
34
34
|
import List from 'rc-virtual-list';
|
|
35
|
-
import React, { forwardRef, useEffect,
|
|
35
|
+
import React, { forwardRef, useEffect, useMemo, useRef } from 'react';
|
|
36
36
|
import Empty from "../Empty";
|
|
37
37
|
import MultipleOption from "./components/MultipleOption";
|
|
38
38
|
import SingleOption from "./components/SingleOption";
|
|
@@ -276,7 +276,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
276
276
|
return (_selectedOptions$ = selectedOptions[0]) === null || _selectedOptions$ === void 0 ? void 0 : _selectedOptions$.value;
|
|
277
277
|
}
|
|
278
278
|
}, [selectedOptions]);
|
|
279
|
-
|
|
279
|
+
useEffect(function () {
|
|
280
280
|
if (prefixRef.current && prefix) {
|
|
281
281
|
setPrefixWidth(prefixRef.current.offsetWidth);
|
|
282
282
|
} else {
|