Skip to content

Commit

Permalink
fix: Add 'Enter' key submission for message sending confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
ztjhz committed Jan 30, 2024
1 parent 58a6240 commit 1f371fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PopupModal/PopupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const PopupModal = ({
return () => {
document.removeEventListener('keydown', handleKeyDown);
};
}, []);
}, [handleConfirm, handleClose, handleClickBackdrop]);

if (modalRoot) {
return ReactDOM.createPortal(
Expand Down

0 comments on commit 1f371fe

Please sign in to comment.