From a6c309e463cc376cb52c0221f21748778f510485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Tue, 15 Aug 2023 17:12:03 +0200 Subject: [PATCH] remove debounce from showPopoverMenu --- src/pages/home/report/ReportActionCompose.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js index 3ade6f4a4aaa..b20946ede4d6 100644 --- a/src/pages/home/report/ReportActionCompose.js +++ b/src/pages/home/report/ReportActionCompose.js @@ -424,14 +424,10 @@ function ReportActionCompose({ * Used to show Popover menu on Workspace chat at first sign-in * @returns {Boolean} */ - const showPopoverMenu = useMemo( - () => - _.debounce(() => { - setMenuVisibility(true); - return true; - }), - [], - ); + const showPopoverMenu = useCallback(() => { + setMenuVisibility(true); + return true; + }, []); /** * Callback to add whatever text is chosen into the main input (used f.e as callback for the emoji picker)