[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:
Anmol Singh Bhatia 2024-03-01 17:29:30 +05:30 committed by GitHub
parent 4b706437d7
commit 894de80f41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,6 +131,8 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
const handleInboxIssueNavigation = useCallback(
(direction: "next" | "prev") => {
if (!inboxIssues || !inboxIssueId) return;
const activeElement = document.activeElement as HTMLElement;
if (activeElement && (activeElement.classList.contains("tiptap") || activeElement.id === "title-input")) return;
const nextIssueIndex =
direction === "next"
? (currentIssueIndex + 1) % inboxIssues.length