ftlabs/ftscroller

Uncaught TypeError: Cannot call method 'createDocumentFragment' of undefined

infacq opened this issue · 4 comments

    require(["ftscroller"], function() {
            var scroller = new FTScroller($content, {
                        scrollingX: false
            }); 
    });

not sure why it triggered the error..

i notice the error triggered after the google map completely appear on the screen

ok i solve this myself. I'm goinng to close this hehhhehe

@infacq How did you solved it? I'm having the same issue

I solved it too, in my case it was related to the fact that I was passing to the FTScroller constructor an object that was not a DOM element (This because I'm using styled components, and I was using ref instead of innerRef)