Uncaught TypeError: Cannot call method 'createDocumentFragment' of undefined
infacq opened this issue · 4 comments
infacq commented
require(["ftscroller"], function() {
var scroller = new FTScroller($content, {
scrollingX: false
});
});
not sure why it triggered the error..
infacq commented
i notice the error triggered after the google map completely appear on the screen
infacq commented
ok i solve this myself. I'm goinng to close this hehhhehe
dhmacs commented
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
)