Skip to content

Commit

Permalink
[NO JIRA]: remove stop propgation that blocks keyboard events (#3515)
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis authored Jun 27, 2024
1 parent 9cec308 commit 9bb605f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/bpk-component-input/src/withOpenEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ type InputProps = ComponentProps<'input'> &

const handleKeyEvent = (callback?: () => void) => (e: KeyboardEvent) => {
if (e.code === KEYCODES.ENTER || e.code === KEYCODES.SPACEBAR) {
e.preventDefault();
if (callback) {
callback();
}
Expand Down

0 comments on commit 9bb605f

Please sign in to comment.