Skip to content

Commit f478625

Browse files
committed
update code style
1 parent 5b79cb8 commit f478625

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Select.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,12 +947,13 @@ class Select extends React.Component<Partial<ISelectProps>, ISelectState> {
947947
};
948948

949949
public timeoutFocus = () => {
950+
const { onFocus } = this.props;
950951
if (this.focusTimer) {
951952
this.clearFocusTime();
952953
}
953954
this.focusTimer = window.setTimeout(() => {
954-
if (this.props.onFocus) {
955-
this.props.onFocus();
955+
if (onFocus) {
956+
onFocus();
956957
}
957958
}, 10);
958959
};

0 commit comments

Comments
 (0)