Skip to content

Commit

Permalink
fix(Tree): fix auto focus when key is empty string, close #3566
Browse files Browse the repository at this point in the history
  • Loading branch information
lakerswgq committed Dec 3, 2021
1 parent 003cc0d commit d53c170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/view/tree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ class Tree extends Component {

handleBlur(e) {
this.setState({
focusedKey: '',
focusedKey: null,
});

this.props.onBlur && this.props.onBlur(e);
Expand Down

0 comments on commit d53c170

Please sign in to comment.