Skip to content

Commit

Permalink
remove debounce from showPopoverMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Aug 15, 2023
1 parent dc4ceea commit a6c309e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a6c309e

Please sign in to comment.