DropdownMenu: Allow choice for data-* props to be routed to triggerElement or DropdownMenu container
Is your feature request related to a problem? Please describe. We're working on the new Spaces project and we're using the DropdownMenu component. The marketing people will want to track the popularity of various components in FullStory so we want to be able to use data selectors about who clicks on the triggerElement and the DropdownMenu container itself. Any data attributes are not passed on anywhere in the component.
Describe the solution you'd like Please do one of the following:
- pass on all non-specified props to the component like {...rest}
- Add specific data attributes to the triggerElement and the DropdownMenu, respectively.
P.S. Can you do this for all new components from now on?
Hello @jocelyn-dunkley We will keep this in mind and also, update you regarding the data-attribute for the DropdownMenu component. Thanks!
@ddouglasz Hi do you have a timeline on this?
Hey @jocelyn-dunkley Going by what we have as priority right now, We should get to this by next week.
Thank you.