diff --git a/src/frontend/src/components/dropdownComponent/index.tsx b/src/frontend/src/components/dropdownComponent/index.tsx
index c7479abfb..841240917 100644
--- a/src/frontend/src/components/dropdownComponent/index.tsx
+++ b/src/frontend/src/components/dropdownComponent/index.tsx
@@ -34,7 +34,15 @@ export default function Dropdown({
: "relative w-full cursor-default rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"
}
>
- {internalValue}
+
+ {internalValue}
+
{options.map((option, id) => (
@@ -69,10 +77,10 @@ export default function Dropdown({
className={({ active }) =>
classNames(
active && !editNode
- ? "text-white bg-indigo-600 dark:bg-indigo-500"
+ ? "text-white bg-indigo-600 dark:bg-indigo-500 dark:text-black"
: "text-gray-900",
active && editNode
- ? "text-white bg-gray-400 dark:bg-gray-500"
+ ? "text-white bg-gray-400 dark:bg-gray-500 dark:text-black"
: "",
editNode
? "relative cursor-default select-none py-0.5 pl-3 pr-12 dark:text-gray-300 dark:bg-gray-800"
@@ -86,7 +94,7 @@ export default function Dropdown({
{option}
@@ -96,7 +104,7 @@ export default function Dropdown({
diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx
index ce59768a6..726431880 100644
--- a/src/frontend/src/components/textAreaComponent/index.tsx
+++ b/src/frontend/src/components/textAreaComponent/index.tsx
@@ -12,13 +12,19 @@ export default function TextAreaComponent({
editNode = false,
}: TextAreaComponentType) {
const [myValue, setMyValue] = useState(value);
- const { openPopUp } = useContext(PopUpContext);
+ const { openPopUp, closePopUp } = useContext(PopUpContext);
+
useEffect(() => {
if (disabled) {
setMyValue("");
onChange("");
}
}, [disabled, onChange]);
+
+ useEffect(() => {
+ setMyValue(value);
+ }, [closePopUp]);
+
return (