enter key
This commit is contained in:
parent
c2fe2b980f
commit
060d69e652
1 changed files with 5 additions and 0 deletions
|
|
@ -62,6 +62,11 @@ function BareInput(props: BareInputProps) {
|
||||||
type="text"
|
type="text"
|
||||||
placeholder={props.placeholder}
|
placeholder={props.placeholder}
|
||||||
value={inputValue}
|
value={inputValue}
|
||||||
|
onKeyPress={(event) => {
|
||||||
|
if (event.key === "Enter") {
|
||||||
|
handleChange()
|
||||||
|
}
|
||||||
|
}}
|
||||||
id="input"
|
id="input"
|
||||||
className="font-roboto flex h-14 w-56 flex-row rounded-2xl border border-input-border-color bg-input p-4 text-center text-xl"
|
className="font-roboto flex h-14 w-56 flex-row rounded-2xl border border-input-border-color bg-input p-4 text-center text-xl"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue