You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to give a custom DropdownIndicator to change the icon if the menu is open or not, but on my DropDownIndicator component it keeps giving me the eslint error of "Unsafe member access .selectProps on an any value.", here is my code, someone can help me please?
The DropdownIndicator code is below, the eslint error is on the props.selectProps part.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to give a custom DropdownIndicator to change the icon if the menu is open or not, but on my DropDownIndicator component it keeps giving me the eslint error of "Unsafe member access .selectProps on an
any
value.", here is my code, someone can help me please?The DropdownIndicator code is below, the eslint error is on the props.selectProps part.
DropdownIndicator: (props: DropdownIndicatorProps<CustomOptionType, false>) => {
if (props.selectProps) {
return ;
} else
return ;
}
Beta Was this translation helpful? Give feedback.
All reactions