|
@@ -28,6 +28,7 @@ import { isSemiIcon } from '../_utils';
|
|
import { Subtract } from 'utility-types';
|
|
import { Subtract } from 'utility-types';
|
|
|
|
|
|
import warning from '@douyinfe/semi-foundation/utils/warning';
|
|
import warning from '@douyinfe/semi-foundation/utils/warning';
|
|
|
|
+import { getUuidShort } from '@douyinfe/semi-foundation/utils/uuid';
|
|
|
|
|
|
import '@douyinfe/semi-foundation/select/select.scss';
|
|
import '@douyinfe/semi-foundation/select/select.scss';
|
|
import { Locale } from '../locale/interface';
|
|
import { Locale } from '../locale/interface';
|
|
@@ -340,7 +341,7 @@ class Select extends BaseComponent<SelectProps, SelectState> {
|
|
isHovering: false,
|
|
isHovering: false,
|
|
};
|
|
};
|
|
/* Generate random string */
|
|
/* Generate random string */
|
|
- this.selectOptionListID = Math.random().toString(36).slice(2);
|
|
|
|
|
|
+ this.selectOptionListID = '';
|
|
this.virtualizeListRef = React.createRef();
|
|
this.virtualizeListRef = React.createRef();
|
|
this.inputRef = React.createRef();
|
|
this.inputRef = React.createRef();
|
|
this.triggerRef = React.createRef();
|
|
this.triggerRef = React.createRef();
|
|
@@ -559,6 +560,7 @@ class Select extends BaseComponent<SelectProps, SelectState> {
|
|
|
|
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
this.foundation.init();
|
|
this.foundation.init();
|
|
|
|
+ this.selectOptionListID = getUuidShort();
|
|
}
|
|
}
|
|
|
|
|
|
componentWillUnmount() {
|
|
componentWillUnmount() {
|