We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I give a try for this : , but it show this error : Uncaught TypeError: root.contains is not a function at index.js:35 at Array.some
Uncaught TypeError: root.contains is not a function at index.js:35 at Array.some
This is because root is equal to the element a this point, and el does not have a contains function.
Error with Wrapper = styled('div')({})
Wrapper = styled('div')({})
<OutsideClick onClick={() => setOpen(false)}> <Wrapper>
Works with
<OutsideClick onClick={() => setOpen(false)}> <div> <Wrapper>
It seems that the ref is not handle correctly. I'll switch to https://github.com/streamich/react-use/blob/master/docs/useOutsideClick.md for now, but I prefer this way instead of the react-use one
The text was updated successfully, but these errors were encountered:
Hi, have not looked into this yet, but maybe @sgb-io can help
Sorry, something went wrong.
No branches or pull requests
Hello,
I give a try for this : , but it show this error :
Uncaught TypeError: root.contains is not a function at index.js:35 at Array.some
This is because root is equal to the element a this point, and el does not have a contains function.
Error with
Wrapper = styled('div')({})
Works with
It seems that the ref is not handle correctly. I'll switch to https://github.com/streamich/react-use/blob/master/docs/useOutsideClick.md for now, but I prefer this way instead of the react-use one
The text was updated successfully, but these errors were encountered: