Skip to content

Commit

Permalink
fix: set mouse event listeners to stay always active in Table compo…
Browse files Browse the repository at this point in the history
…nent
  • Loading branch information
Pragadesh-45 committed Jan 7, 2025
1 parent 8a973cc commit 6c8bf60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/bruno-app/src/components/Table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ const Table = ({ minColumnWidth = 70, headers = [], children }) => {
}, [removeListeners]);

useEffect(() => {
if (activeColumnIndex !== null) {
window.addEventListener('mousemove', handleMouseMove);
window.addEventListener('mouseup', handleMouseUp);
}
window.addEventListener('mousemove', handleMouseMove);
window.addEventListener('mouseup', handleMouseUp);
return () => {
removeListeners();
};
Expand Down

0 comments on commit 6c8bf60

Please sign in to comment.