Skip to content

Commit

Permalink
fix(List): deactivate on mouse leave (#1847)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS authored Sep 10, 2024
1 parent 216e700 commit cc14563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/List/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ export class List<T = unknown> extends React.Component<ListProps<T>, ListState<T
if (!this.blurTimer) {
return;
}
this.blurTimer = null;
if (this.props.deactivateOnLeave) {
this.setState({activeItem: undefined});
}
Expand Down Expand Up @@ -609,7 +610,7 @@ export class List<T = unknown> extends React.Component<ListProps<T>, ListState<T
};

private onMouseLeave = () => {
this.deactivate();
this.handleBlur();
};

private onSortStart = () => {
Expand Down

0 comments on commit cc14563

Please sign in to comment.