We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45fecfa commit 1a7665dCopy full SHA for 1a7665d
components/Dropdown.tsx
@@ -37,7 +37,7 @@ export default function Dropdown(props: DropdownProps) {
37
<Menu.Items className={`absolute z-10 mt-2 w-40 origin-top-right rounded-md bg-white shadow-sm ring-1 ring-black ring-opacity-5 focus:outline-none ${props.itemsClasses ? props.itemsClasses : ''}`}>
38
<div className="py-1">
39
{props.options.map((option: any) => (
40
- <div key={option.id}>
+ <div key={props.onlyArray ? option : option.id}>
41
<Menu.Item >
42
{({ active }) => (
43
<a key={option.id}
0 commit comments