Open huzaifah-here opened 7 months ago
Having exactly same issue
same as well
I'm having the same issue. Has anyone found a workaround or solution? Using material-tailwind/react version 2.1.4
I found a solution like this when using dynamic data. I have to rerender the select component again
{data.length > 0 && ( <Select label={label} value={value} onChange={ (val) => setData([]); fetchData(val) setValue(val) } error={!!error} disabled={disabled}
{data.map(({ id, value }, key) => ( <Option value={id} key={key}
{value} ))} )}
Same here. I think the problem is Select
is not mapping the Option
with value
but index
now. I opened another issue for this: https://github.com/creativetimofficial/material-tailwind/issues/675
Hi, I'm mapping value from api. But It is not appearing. When I click on create button Its saving the value which already i mapped. It just showing blank but the functionality is working