From 6478be79bcd8fc9fa4151ff8f298bbfb67351209 Mon Sep 17 00:00:00 2001 From: Adam Rak Date: Wed, 27 Sep 2023 18:22:07 +0200 Subject: [PATCH] fix(input): focus when mouse out on web Closes https://github.com/akveo/react-native-ui-kitten/issues/1401 --- src/components/ui/input/input.component.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/ui/input/input.component.tsx b/src/components/ui/input/input.component.tsx index b1c3894c1..b1f5542bd 100644 --- a/src/components/ui/input/input.component.tsx +++ b/src/components/ui/input/input.component.tsx @@ -163,10 +163,18 @@ export class Input extends React.Component 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([]); };