Open cicomint opened 5 years ago
Temporary solution for this is to pass defaultIndex as string
Temporary solution for this is to pass defaultIndex as string
yes. exactly. i tried defIndex.toString()
to make it works
Did you manage to solve this?
Any solution??
Temporary solution for this is to pass defaultIndex as string
yes. exactly. i tried
defIndex.toString()
to make it works
Hey can you tell me how to do it exactly?
Temporary solution for this is to pass defaultIndex as string
yes. exactly. i tried
defIndex.toString()
to make it worksHey can you tell me how to do it exactly?
defaultIndex={"0"} instead of defaultIndex={0}
<SearchableDropdown defaultIndex={"0"} items={dataFiltered} />
and if You have this index in variable then You must convert number to string
const index = 0;
<SearchableDropdown defaultIndex={index.toString()} items={dataFiltered} />
Temporary solution for this is to pass defaultIndex as string
yes. exactly. i tried
defIndex.toString()
to make it worksHey can you tell me how to do it exactly?
defaultIndex={"0"} instead of defaultIndex={0}
<SearchableDropdown defaultIndex={"0"} items={dataFiltered} />
and if You have this index in variable then You must convert number to string
const index = 0; <SearchableDropdown defaultIndex={index.toString()} items={dataFiltered} />
I tried but it is not working
Reproduce
<SearchableDropdown defaultIndex={0} items={dataFiltered} />/