[WEB-616] fix: inbox issue navigation issue title and description event propagation (#3851)
* fix: inbox issue navigation issue title and description event propagation * fix: inbox issue navigation issue title and description event propagation
This commit is contained in:
parent
4b706437d7
commit
894de80f41
1 changed files with 2 additions and 0 deletions
|
|
@ -131,6 +131,8 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
|
||||||
const handleInboxIssueNavigation = useCallback(
|
const handleInboxIssueNavigation = useCallback(
|
||||||
(direction: "next" | "prev") => {
|
(direction: "next" | "prev") => {
|
||||||
if (!inboxIssues || !inboxIssueId) return;
|
if (!inboxIssues || !inboxIssueId) return;
|
||||||
|
const activeElement = document.activeElement as HTMLElement;
|
||||||
|
if (activeElement && (activeElement.classList.contains("tiptap") || activeElement.id === "title-input")) return;
|
||||||
const nextIssueIndex =
|
const nextIssueIndex =
|
||||||
direction === "next"
|
direction === "next"
|
||||||
? (currentIssueIndex + 1) % inboxIssues.length
|
? (currentIssueIndex + 1) % inboxIssues.length
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue