From 6f97bc072abf3bc13292895794059ea301250de8 Mon Sep 17 00:00:00 2001 From: primakov Date: Wed, 30 Nov 2022 12:16:46 +0300 Subject: [PATCH] fix keyboard feature off --- src/pages/main.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/main.tsx b/src/pages/main.tsx index 845b2be..ef9abbb 100644 --- a/src/pages/main.tsx +++ b/src/pages/main.tsx @@ -62,14 +62,16 @@ const Input = ({ onStart }) => { onFocus={() => setInfocuse(true)} ref={inputRef} onClick={(event) => { - event.preventDefault(); - event.stopPropagation(); - inputRef.current.blur(); + if (keyboardFeature) { + event.preventDefault(); + event.stopPropagation(); + inputRef.current.blur(); + } }} id="input" autoComplete="off" /> - setInfocuse(true)} /> + {keyboardFeature && setInfocuse(true)} />}