react-dd-menu icon indicating copy to clipboard operation
react-dd-menu copied to clipboard

Open menu at the click location

Open carboniris opened this issue 8 years ago • 3 comments

Is there a way to display the menu when I click on the trigger, but have the top-left (or other) corner of the menu at the (x,y) position of the click?

carboniris avatar Apr 10 '17 17:04 carboniris

Looks like it isn't really possible right now since I didn't expose the style or listStyle props. :/

mlaursen avatar Apr 10 '17 17:04 mlaursen

Maybe you could do something like what the similar react-contextmenu and simply put class names on the menu elements so people can style. Not a perfect solution, but definitely a step in the right direction.

carboniris avatar Apr 10 '17 20:04 carboniris

I'd be happy to take a pull request with that feature, but I probably won't be implementing it myself. I'm devoting most of my free time with my bigger project react-md.

mlaursen avatar Apr 10 '17 21:04 mlaursen