Skip to content

Commit

Permalink
perf: select content in popover delay to render when popup is visible,
Browse files Browse the repository at this point in the history
  • Loading branch information
pointhalo committed Nov 29, 2024
1 parent 0720071 commit 785853f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/semi-ui/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,6 @@ class Select extends BaseComponent<SelectProps, SelectState> {
dropdownMargin,
} = this.props;
const { isOpen, optionKey } = this.state;
const optionList = this.renderOptions(children);
const selection = this.renderSelection();
return (
<Popover
Expand All @@ -1518,10 +1517,9 @@ class Select extends BaseComponent<SelectProps, SelectState> {
autoAdjustOverflow={autoAdjustOverflow}
mouseLeaveDelay={mouseLeaveDelay}
mouseEnterDelay={mouseEnterDelay}
// transformFromCenter TODO: check no such property
zIndex={zIndex}
ref={this.optionsRef}
content={optionList}
content={() => this.renderOptions(children)}
visible={isOpen}
trigger="custom"
rePosKey={optionKey}
Expand Down

0 comments on commit 785853f

Please sign in to comment.