thebeansgroup / tbg-react-slider

4 stars 4 forks source link

Slider.js:78 / Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null #1

Closed eamaral92 closed 8 years ago

eamaral92 commented 8 years ago

This error keep pop in the console in a loop...

adtaylor commented 8 years ago

Do you have some working code that can be looked at? If I were to guess at the cause of your issue then I'd assume there is no content being passed to the slider.

eamaral92 commented 8 years ago

`<Slider dots='true' arrow={} dot={} >

                <img className="slider-item" src="https://placeholdit.imgix.net/~text?txtsize=86&txt=1026%C3%97480&w=1026&h=480"/>
                <img className="slider-item" src="https://placeholdit.imgix.net/~text?txtsize=86&txt=1026%C3%97480&w=1026&h=480"/>
            </Slider>`
eamaral92 commented 8 years ago

Another thing, I need a thumbnail preview of the imgs, can the slider support that?

adtaylor commented 8 years ago

No, the slider does not support thumbnail previews.

Your code appears to work. Working example can be found here: http://www.webpackbin.com/NyfswbaNZ

Closing the issue as there doesn't appear to be an issue. Please reopen if this is not the case.