react-click-outside icon indicating copy to clipboard operation
react-click-outside copied to clipboard

added preact compatibility. used with preact-compat

Open rsoury opened this issue 7 years ago • 0 comments

In Preact (a lighter alternative to React), domNode returns an object that contains the HTML Element and does not provide a method within Component that supports contains.

Therefore, contains is undefined in Preact.

This has been tested.

rsoury avatar Jun 21 '18 15:06 rsoury