From ab123ece636892ca2f654d30f2aa2d8949d27c45 Mon Sep 17 00:00:00 2001 From: dragnoir Date: Tue, 9 Apr 2024 13:06:31 +0100 Subject: [PATCH] Fix: button trigger double action on keyup --- src/components/Button/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 3b05d22fe6c4..68f1aac41a5b 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -289,6 +289,10 @@ function Button( currentTarget?.blur(); } + if (event?.type === 'keyup') { + return; + } + if (shouldEnableHapticFeedback) { HapticFeedback.press(); }