From 65bb338ed6012bf8de570ec6aa9bfe7508bffb23 Mon Sep 17 00:00:00 2001 From: gadotroee <55343099+gadotroee@users.noreply.github.com> Date: Wed, 26 Jan 2022 19:32:49 +0200 Subject: [PATCH] Revert "TRA-4169 apply query by enter (#665)" (#703) This reverts commit c098ff33236ec11155e94bbcf7f0fecfad975fc5. --- ui/src/hooks/useKeyPress.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/src/hooks/useKeyPress.ts b/ui/src/hooks/useKeyPress.ts index ffc6e7f07..4f14fd2c7 100644 --- a/ui/src/hooks/useKeyPress.ts +++ b/ui/src/hooks/useKeyPress.ts @@ -10,8 +10,6 @@ const useKeyPress = (eventConfigs, callback, node = null) => { // handle what happens on key press const handleKeyPress = useCallback( (event) => { - event.preventDefault(); - // check if one of the key is part of the ones we want if (eventConfigs.some((eventConfig) => Object.keys(eventConfig).every(nameKey => eventConfig[nameKey] === event[nameKey]))) { callbackRef.current(event);