Исправлена обработка закрытия модального окна
This commit is contained in:
parent
5f03b1971c
commit
b6b9b30cce
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue