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. We have the following UI structure:
<Draggable> <div>draggable header</div> <div>some regular content</div> <Portal>some content in portal</Portal> </Draggable>
Where Portal is Portal component from https://github.com/tajo/react-portal
When mousedown event occurs in Portal - 'Cannot read property 'call' of undefined' error is thrown in matchesSelector function.
See https://codesandbox.io/s/v0nwywwlk7 for the details.
The text was updated successfully, but these errors were encountered:
I have the same problem. It should be easy to fix by adding if check here:
https://github.com/mzabriskie/react-draggable/blob/c39ef7b635a0a6f81a0ee35a892d026c61da389e/lib/utils/domFns.js#L22-L23
Sorry, something went wrong.
I opened PR to fix this problem #303
@svsool won't it break when trying to access document.parentNode then? Also, I see that checks failed in your PR.
document.parentNode
Ah, I see that document has parentNode specified to null. ok then. good job! :)
document
parentNode
null
176f691
No branches or pull requests
Hello. We have the following UI structure:
Where Portal is Portal component from https://github.com/tajo/react-portal
When mousedown event occurs in Portal - 'Cannot read property 'call' of undefined' error is thrown in matchesSelector function.
See https://codesandbox.io/s/v0nwywwlk7 for the details.
The text was updated successfully, but these errors were encountered: