fix keyboard feature off
This commit is contained in:
parent
007999ce72
commit
6f97bc072a
@ -62,14 +62,16 @@ const Input = ({ onStart }) => {
|
|||||||
onFocus={() => setInfocuse(true)}
|
onFocus={() => setInfocuse(true)}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
event.preventDefault();
|
if (keyboardFeature) {
|
||||||
event.stopPropagation();
|
event.preventDefault();
|
||||||
inputRef.current.blur();
|
event.stopPropagation();
|
||||||
|
inputRef.current.blur();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
id="input"
|
id="input"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
/>
|
/>
|
||||||
<InputHolder onClick={() => setInfocuse(true)} />
|
{keyboardFeature && <InputHolder onClick={() => setInfocuse(true)} />}
|
||||||
<IconButton type="submit">
|
<IconButton type="submit">
|
||||||
<ArrowImg src={arrow} />
|
<ArrowImg src={arrow} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
Loading…
Reference in New Issue
Block a user