Cannot read property 'getBoundingClientRect' of null
See original GitHub issueNot sure how it the fix here 328, I did this:
render() {
let imgTpl = (images || []).map((image, index) => {
return (
<div key={image.Id} >
<img src={image.url} /></div>
);
});
}
return(
<Slider {...settings}>
{ imgTpl }
</Slider>
)
There is a div around the image items but it still does not work.
Issue Analytics
- State:
- Created 7 years ago
- Comments:35 (6 by maintainers)
Top Results From Across the Web
Cannot read property 'getBoundingClientRect' of null
I get this error: Cannot read property 'getBoundingClientRect' of null . I use this function getBoundingClientRect , because in my project I ...
Read more >Cannot read property 'getBoundingClientRect' of null #100
Hi! I'm getting sometimes this error in console Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null How can I fix this?
Read more >Throwing Cannot read property 'getBoundingClientRect' of ...
The error keeps coming from Sentry from a user using windows xp and chrome v49.0.2623, and several users using windows 10 and Edge...
Read more >TypeError: Cannot read property 'getBoundingClientRect' of null
Hi,. The issue I am experiencing looks similar to (see link below), except I am using the angular 2+ diagrams component. ... It...
Read more >TypeError: Cannot read property 'getBoundingClientRect' of null
Suspected problems and effort to solve this: Error message: I get the same error message “TypeError: Cannot read property 'getBoundingClientRect' of null” from ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This happens anytime your slides are custom React components. For example, this doesn’t work…
This works…
this.list
ref doesn’t get setMake sure imgDivs is not empty inside Slider