Skip to content

Commit

Permalink
Merge pull request #39924 from dragnoir/37464-fix
Browse files Browse the repository at this point in the history
Fix: button trigger double action on keyup
  • Loading branch information
techievivek authored Apr 15, 2024
2 parents db9e01c + ab123ec commit b5fdc87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ function Button(
currentTarget?.blur();
}

if (event?.type === 'keyup') {
return;
}

if (shouldEnableHapticFeedback) {
HapticFeedback.press();
}
Expand Down

0 comments on commit b5fdc87

Please sign in to comment.