Fixed dropdown color when it is not global

This commit is contained in:
Lucas Oliveira 2024-06-10 14:08:39 -03:00
commit 43e6c315cf

View file

@ -24,6 +24,7 @@ export default function InputComponent({
blurOnEnter = false, blurOnEnter = false,
optionsIcon = "ChevronsUpDown", optionsIcon = "ChevronsUpDown",
selectedOption, selectedOption,
setSelectedOption, setSelectedOption,
selectedOptions = [], selectedOptions = [],
setSelectedOptions, setSelectedOptions,
@ -164,7 +165,7 @@ export default function InputComponent({
e.stopPropagation(); e.stopPropagation();
}} }}
className={cn( className={cn(
selectedOption !== "" onChange && setSelectedOption && selectedOption !== ""
? "text-medium-indigo" ? "text-medium-indigo"
: "text-muted-foreground", : "text-muted-foreground",
"hover:text-accent-foreground", "hover:text-accent-foreground",