Skip to content

Commit

Permalink
Fix double pasting after switching chats
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Jul 9, 2024
1 parent f810c3f commit 13dafac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useHtmlPaste/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const useHtmlPaste: UseHtmlPaste = (textInputRef, preHtmlPasteCallback, removeLi
unsubscribeFocus();
unsubscribeBlur();
}
document.removeEventListener('paste', handlePaste, true);
document.removeEventListener('paste', handlePaste);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down

0 comments on commit 13dafac

Please sign in to comment.