My page is within Nextjs but as this is client-only - I do not see this as an issue.
My page is a tsx page.
The minimum code to recreate the issue is taken from the documentation where the options are passed in from an array
Code: Select all
const catTypes = [
{ name: 'Brand', code: 'B' },
{ name: 'Category', code: 'C' },
{ name: 'Title', code: 'T' },
];
const [selectedCity1, setSelectedCity1] = useState<any>(null);
<Dropdown value={selectedCity1} options={catTypes} />
Code: Select all
<Dropdown value={selectedCity1} options={catTypes} />
Thanks for assistance