Fixed dropdown color when it is not global
This commit is contained in:
parent
5d40faf220
commit
43e6c315cf
1 changed files with 2 additions and 1 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue