Исправлена обработка закрытия модального окна

This commit is contained in:
Gnedov Pavel 2023-06-21 15:51:45 +07:00
parent 5f03b1971c
commit b6b9b30cce

View file

@ -46,6 +46,7 @@ export const IssueDetailsDialog = observer((props: Props): JSX.Element => {
axios.post(url, [props.store.issue.id]); axios.post(url, [props.store.issue.id]);
}; };
const onCloseClick = (e: React.MouseEvent) => { const onCloseClick = (e: React.MouseEvent) => {
if (e.target !== e.currentTarget) return;
e.stopPropagation(); e.stopPropagation();
props.store.hide(); props.store.hide();
}; };