From 43e6c315cfc9a3d3324ae10be1fcbd238800992d Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 10 Jun 2024 14:08:39 -0300 Subject: [PATCH] Fixed dropdown color when it is not global --- src/frontend/src/components/inputComponent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index 5327c11e3..c4a2453e2 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -24,6 +24,7 @@ export default function InputComponent({ blurOnEnter = false, optionsIcon = "ChevronsUpDown", selectedOption, + setSelectedOption, selectedOptions = [], setSelectedOptions, @@ -164,7 +165,7 @@ export default function InputComponent({ e.stopPropagation(); }} className={cn( - selectedOption !== "" + onChange && setSelectedOption && selectedOption !== "" ? "text-medium-indigo" : "text-muted-foreground", "hover:text-accent-foreground",