dropdown icon indicating copy to clipboard operation
dropdown copied to clipboard

Close dropdown when clicking outside

Open Dramex opened this issue 2 years ago • 2 comments

Hey,

is there an easy prop that triggered with clicking outside the dropdown ?

Thanks

Dramex avatar Apr 22 '22 22:04 Dramex

Use Dropdown's onVisibleChange. It'll detect outside clicks and send it to your function. Refer to docs.

lucis avatar Apr 28 '22 18:04 lucis

Use Dropdown's onVisibleChange. It'll detect outside clicks and send it to your function. Refer to docs.

this only fires when visible is changed, not with outside clicks

Dramex avatar Apr 28 '22 20:04 Dramex