Skip to content
Snippets Groups Projects
Unverified Commit bc3bb6f2 authored by George Sumpster's avatar George Sumpster Committed by GitHub
Browse files

Fix form submission on TransferTooltip when pressing enter (#629)


* use onEnter over onKeyDown in TransferTooltip

* condense line

Co-authored-by: default avatarJed Fox <git@jedfox.com>

* remove unnecessary arrow fn

---------

Co-authored-by: default avatarJed Fox <git@jedfox.com>
parent d24d8fb7
No related branches found
No related tags found
No related merge requests found
......@@ -82,13 +82,7 @@ export default function TransferTooltip({
openOnFocus={true}
onUpdate={id => {}}
onSelect={id => setCategory(id)}
inputProps={{
onKeyDown: e => {
if (e.keyCode === 13) {
submit();
}
}
}}
inputProps={{ onEnter: submit }}
/>
<View
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment