-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
TypeError · Cannot read property 'getBoundingClientRect' of null #60
Comments
Hi @vibhorme. Could you post your code so that I can take a closer look? |
Hi @alexanderwallin I got this bug too. Here is my code.
|
I'm also getting this error when I click on the slider several times. |
I am using 1.1.0 to avoid this issue |
I wonder if this can be fixed by upgrading the downstream dependency of |
I made a bare minimum app based on @Donaldzzq's code sample above and tested it in Chrome, Opera, Safari and Firefox, and could not replicate the issue. If anyone could post a reproducible repo that would be great! |
It only happens in 2.0.0beta, I assume it is mobile drag problem. screen-capture-_39_.mp4 |
@alexanderwallin
slider component is having an issue after the recent update version(2.0.0-beta.1)
//node_modules/react-player-controls/dist/components/Slider.js:137:23
var $el = _react.default.createRef();
var bounds = function bounds() {
return $el.current.getBoundingClientRect(); //error - TypeError · Cannot read property 'getBoundingClientRect' of null
};
This issue is occurring when we click on the play button and then try to drag the slider
The text was updated successfully, but these errors were encountered: