Skip to content

Commit 75ad8c2

Browse files
committed
fix: focus when mouse out on web input
1 parent ee7aa83 commit 75ad8c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/ui/input/input.component.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,18 @@ export class Input extends React.Component<InputProps> implements WebEventRespon
163163
// WebEventResponderCallbacks
164164

165165
public onMouseEnter = (): void => {
166+
if (this.isFocused()) {
167+
return;
168+
}
169+
166170
this.props.eva.dispatch([Interaction.HOVER]);
167171
};
168172

169173
public onMouseLeave = (): void => {
174+
if (this.isFocused()) {
175+
return;
176+
}
177+
170178
this.props.eva.dispatch([]);
171179
};
172180

0 commit comments

Comments
 (0)