Skip to content

Commit

Permalink
[Feat] escapeKeyDown 기능 추가 및 하드코딩 수정 #650
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilbur0306 committed Feb 21, 2023
1 parent f925104 commit 4bad0b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/modal/admin/AdminNotiAllModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function AdminNotiAllModal(props: any) {
const [open, setOpen] = useState(false);

const handleClick = () => {
setOpen(true);
setOpen((prev) => !prev);
};

return (
Expand Down
2 changes: 1 addition & 1 deletion components/toastmsg/toastmsg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function CustomizedSnackbars({
event?: React.SyntheticEvent | Event,
reason?: string
) => {
if (reason === 'clickaway') {
if (reason === 'clickaway' || reason === 'escapeKeyDown') {
return;
}

Expand Down

0 comments on commit 4bad0b7

Please sign in to comment.