Javascript – How to make clicking some elements an exception for useClickAway hook
I have an Overlay which is opened by clicking an icon button. In that Overlay, I'm using the useClickAway hook exported by the react-use library - useClickAway(overlayRef, hideOverlay); Basically, whenever a user clicks anywhere outside the overlay dom node, it…