Skip to content

Commit b8a8a7c

Browse files
authored
fix(select): render selector menu error (#274)
1 parent e588029 commit b8a8a7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SelectOptionGroup/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class SelectOptionGroup extends Component {
3838
}
3939

4040
resetMenuStyle = () => {
41+
if (!this.optionGroupRef) return;
4142
const { isInModal, position } = this.props;
4243
const { top, height } = this.optionGroupRef.getBoundingClientRect();
4344
if (isInModal) {

0 commit comments

Comments
 (0)