React-popper: Click outside

Created on 24 May 2018  路  4Comments  路  Source: popperjs/react-popper

Click outside popup doesn't appear?

Most helpful comment

For those using React, I created a gist of an HOC that you can attach to any component to close it when clicked outside:

https://gist.github.com/elie222/850bc4adede99650508aba2090cd5da1

All 4 comments

Thank you for your issue.

Unfortunately I can't answer to all the reported issues without a little help from you.
Please, make sure to follow the issues template when you submit a new issue, in this way I will already have all the informations needed to understand the problem and help you with it.

I'm closing this issue for now, but feel free to open a new one making sure to follow all the instructions!

Thank you for your understanding.

For those using React, I created a gist of an HOC that you can attach to any component to close it when clicked outside:

https://gist.github.com/elie222/850bc4adede99650508aba2090cd5da1

@elie222 Some explanation on how to use will be great

A click outside hook may be better nowadays

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vmanchev picture vmanchev  路  7Comments

souporserious picture souporserious  路  5Comments

alarstyle picture alarstyle  路  6Comments

souporserious picture souporserious  路  6Comments

mogusbi picture mogusbi  路  5Comments