I'm encountering an issue while implementing a nested dropdown in Next.js using Next UI version 2.2.9. When I click on the top-level button of the dropdown, the sublevel contents briefly appear for less than a second, and then the entire dropdown closes, rendering it unclickable. I'm unable to perform any actions. Seeking assistance to resolve this problem. Thank you!
`<Dropdown backdrop="blur">
<DropdownTrigger>
<Button variant="light">
Process Team
</Button>
</DropdownTrigger>
<DropdownMenu variant="light" aria-label="Static Actions">
<DropdownItem>
<Dropdown>
<DropdownTrigger>
<Button variant="light">
Member
</Button>
</DropdownTrigger>
<DropdownMenu>
<DropdownItem className="text-black">List All Cases</DropdownItem>
<DropdownItem className="text-black">Reassign Cases</DropdownItem>
</DropdownMenu>
</Dropdown>
</DropdownItem>
</DropdownMenu>
</Dropdown>
`
Problem :
Possible Cause :
Solution :
change from
to
Similarly if you have many nesting then pass
closeOnSelect={false}for every parent.When you have more levels :
Please read :