e.stopPropagation()}
>
{record.comment || " "}
diff --git a/client/src/components/production-list-columns/production-list-columns.productionnote.component.jsx b/client/src/components/production-list-columns/production-list-columns.productionnote.component.jsx
index aa7c11914..28ea33822 100644
--- a/client/src/components/production-list-columns/production-list-columns.productionnote.component.jsx
+++ b/client/src/components/production-list-columns/production-list-columns.productionnote.component.jsx
@@ -1,7 +1,7 @@
import Icon from "@ant-design/icons";
import { useMutation } from "@apollo/client/react";
import { Button, Input, Popover, Space } from "antd";
-import { useCallback, useMemo, useState } from "react";
+import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
import { FaRegStickyNote } from "react-icons/fa";
import { logImEXEvent } from "../../firebase/firebase.utils";
@@ -27,6 +27,7 @@ function ProductionListColumnProductionNote({ record, setNoteUpsertContext }) {
(e) => {
logImEXEvent("production_add_note");
e.stopPropagation();
+ e.preventDefault();
setOpen(false);
updateAlert({
variables: {
@@ -46,7 +47,6 @@ function ProductionListColumnProductionNote({ record, setNoteUpsertContext }) {
);
const handleChange = useCallback((e) => {
- e.stopPropagation();
setNote(e.target.value);
}, []);
@@ -58,42 +58,48 @@ function ProductionListColumnProductionNote({ record, setNoteUpsertContext }) {
[record]
);
- const popoverContent = useMemo(
- () => (
-
-
-
-
-
-
-
- ),
- [note, handleSaveNote, handleChange, record, setNoteUpsertContext, t]
+ const content = (
+
e.stopPropagation()} onClick={(e) => e.stopPropagation()}>
+ e.stopPropagation()}
+ onClick={(e) => e.stopPropagation()}
+ />
+
+
+
+
+
);
return (
-
+ trigger.parentElement}
+ >
e.stopPropagation()}
>
{record.production_vars?.note || " "}