Исправлен переход по ссылкам

This commit is contained in:
Pavel Gnedov 2023-06-19 20:53:17 +07:00
parent 44934a590c
commit 7be8f43797
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ export const IssuesListCard = observer((props: Props): JSX.Element => {
visible: false
});
return (
<div className={Css.listItem} onClick={(e) => {e.stopPropagation(); e.preventDefault(); detailsStore.show();}}>
<div className={Css.listItem} onClick={(e) => {e.stopPropagation(); detailsStore.show();}}>
<IssueDetailsDialogNs.IssueDetailsDialog store={detailsStore}/>
<div>
<TimePassedNs.TimePassed params={{ fromIssue: { issue: props.store, keyName: 'timePassedClass' } }}/>

View file

@ -55,7 +55,7 @@ export const KanbanCard = observer((props: Props) => {
visible: false,
})
return (
<div className={KanbanCardCss.kanbanCard} onClick={(e) => {e.preventDefault(); e.stopPropagation(); detailsStore.show();}}>
<div className={KanbanCardCss.kanbanCard} onClick={(e) => {e.stopPropagation(); detailsStore.show();}}>
<IssueDetailsDialogNs.IssueDetailsDialog store={detailsStore} />
<div className={KanbanCardCss.kanbanCardTitle}>
<TimePassedNs.TimePassed params={timePassedParams}/>

View file

@ -41,7 +41,7 @@ export const IssueDetailsDialog = observer((props: Props): JSX.Element => {
<div className={Css.modal} style={props.store.displayStyle}>
<div className={Css.modalContent}>
<h1>
<button onClick={(e) => {e.preventDefault(); e.stopPropagation(); props.store.hide();}}>close</button>
<button onClick={(e) => {e.stopPropagation(); props.store.hide();}}>close</button>
<IssueHrefNs.IssueHref
id={props.store.issue?.id || -1}
subject={props.store.issue?.subject || ''}