Skip to content

Commit

Permalink
fix: focus when mouse out on web input
Browse files Browse the repository at this point in the history
  • Loading branch information
raqso committed Sep 27, 2023
1 parent ee7aa83 commit 75ad8c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/ui/input/input.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,18 @@ export class Input extends React.Component<InputProps> implements WebEventRespon
// WebEventResponderCallbacks

public onMouseEnter = (): void => {
if (this.isFocused()) {
return;
}

this.props.eva.dispatch([Interaction.HOVER]);
};

public onMouseLeave = (): void => {
if (this.isFocused()) {
return;
}

this.props.eva.dispatch([]);
};

Expand Down

0 comments on commit 75ad8c2

Please sign in to comment.