react-foundation-components icon indicating copy to clipboard operation
react-foundation-components copied to clipboard

LinkWithDropdown: how to close overlay by select one of their option

Open evegreen opened this issue 8 years ago • 2 comments

Hello,

I need to hide dropdown overlay if i click outside them or click on one of their option, how i can do this?

Thank you!

evegreen avatar Jan 11 '17 12:01 evegreen

Hi @evegreen. Did you mean you want to close dropdown by clicking on one of it's children? In my case my dropdown is a menu and I'd like to close it when clicking on one of the links. Any ideas on how to achieve this?

yantakus avatar Jun 20 '17 21:06 yantakus

Hello, @yantakus , i do this by modifying the dom, in handler on one of it's children. But i wanna do this in react style. It's been some time ago, and i don't have ideas right now

evegreen avatar Jun 21 '17 20:06 evegreen