From 01b488e1d3b3f3a4338b7085d359661483da350b Mon Sep 17 00:00:00 2001 From: marcinbodnar Date: Tue, 10 May 2022 18:04:18 +0200 Subject: [PATCH] fix: onKeyDown from LedgerHdPaths --- .../frontend/src/components/accounts/ledger/LedgerHdPaths.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/accounts/ledger/LedgerHdPaths.js b/packages/frontend/src/components/accounts/ledger/LedgerHdPaths.js index 550ce9df0c..ec9f709714 100644 --- a/packages/frontend/src/components/accounts/ledger/LedgerHdPaths.js +++ b/packages/frontend/src/components/accounts/ledger/LedgerHdPaths.js @@ -120,10 +120,11 @@ export default function LedgerHdPaths({ if (dropdownOpen) { if (e.keyCode === 38) { increment(); + e.preventDefault(); } else if (e.keyCode === 40) { decrement(); + e.preventDefault(); } - e.preventDefault(); } });