-
-
Notifications
You must be signed in to change notification settings - Fork 472
Open
Description
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Steps to reproduce
- Create a client component with Next.js.
- Add the Flowbite dropdown and pass an
onToggle
oronClick
function like this:
<FlowbiteDropdown
onClick={() => console.log('cliock')}
onToggle={(e) => console.log('toggle', e)}
label="test"
>
<DropdownItem>test123</DropdownItem>
</FlowbiteDropdown>
Current behavior
The event callbacks are not triggered.
Expected behavior
The console log appears.
Context
I want to create a basic useState hook to know programmatically whether the dropdown is open or not.
Metadata
Metadata
Assignees
Labels
No labels