flowbite-react icon indicating copy to clipboard operation
flowbite-react copied to clipboard

Add onClick event on the dropdown component

Open dpena-nts opened this issue 1 year ago • 1 comments

  • [x] I have searched the Issues to see if this bug has already been reported
  • [x] I have tested the latest version

Summary

currently only the items in the dropdown have onClick methods It would be nice if the dropdown button also has a onClick event

Context

I want to trigger something when the dropdown button is pressed, if I have a something like this

the autodismiss wont work so I want to integrate the onClick event inside the dropdown to see if it works (if I remove the onClick event on the div the autodismiss work I have no idea why)

dpena-nts avatar Aug 01 '23 18:08 dpena-nts