From 3cf51b829f0fac7f18b40e1db69bfcbe5afc7817 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Fri, 23 Aug 2024 18:01:30 +0530 Subject: [PATCH] fix: pwa sticky issue comment --- .../issue-activity/comments/comment-create.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx b/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx index 9040ab268b6..d8c86ec1828 100644 --- a/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx +++ b/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx @@ -7,9 +7,10 @@ import { LiteTextEditor } from "@/components/editor/lite-text-editor/lite-text-e // constants import { EIssueCommentAccessSpecifier } from "@/constants/issue"; // helpers +import { cn } from "@/helpers/common.helper"; import { isEmptyHtmlString } from "@/helpers/string.helper"; // hooks -import { useWorkspace } from "@/hooks/store"; +import { useIssueDetail, useWorkspace } from "@/hooks/store"; // editor import { TActivityOperations } from "../root"; @@ -27,6 +28,7 @@ export const IssueCommentCreate: FC = (props) => { const editorRef = useRef(null); // store hooks const workspaceStore = useWorkspace(); + const { peekIssue } = useIssueDetail(); // derived values const workspaceId = workspaceStore.getWorkspaceBySlug(workspaceSlug as string)?.id as string; // form info @@ -58,6 +60,9 @@ export const IssueCommentCreate: FC = (props) => { return (
{ if (e.key === "Enter" && !e.shiftKey && !e.ctrlKey && !e.metaKey && !isEmpty && !isSubmitting) handleSubmit(onSubmit)(e);