fix keyboard feature off

This commit is contained in:
Primakov Alexandr Alexandrovich 2022-11-30 12:16:46 +03:00
parent 007999ce72
commit 6f97bc072a

View File

@ -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"
/>
<InputHolder onClick={() => setInfocuse(true)} />
{keyboardFeature && <InputHolder onClick={() => setInfocuse(true)} />}
<IconButton type="submit">
<ArrowImg src={arrow} />
</IconButton>