Redbility / paper-carousel

Web component to build a responsive carousel
MIT License
44 stars 23 forks source link

TypeError: Cannot read property 'children' of null #22

Closed dman777 closed 7 years ago

dman777 commented 7 years ago

Using Polymer 1.7.*, chrome, native shadow without web components file being loaded.

paper-carousel.html:13 Uncaught TypeError: Cannot read property 'children' of null
    at HTMLElement.getTotalItems (paper-carousel.html:13)
    at HTMLElement._setContainerSize (paper-carousel.html:13)
    at HTMLElement._onResize (paper-carousel.html:13)
    at HTMLElement.handler (polymer.html:560)
    at HTMLElement.fire (polymer.html:1337)
    at HTMLElement._fireResize (iron-resizable-behavior.html:151)
    at HTMLElement.notifyResize (iron-resizable-behavior.html:101)
    at HTMLElement._notifyDescendant (iron-resizable-behavior.html:190)
    at HTMLElement._onIronRequestResizeNotifications (iron-resizable-behavior.html:170)```
    <paper-carousel items="1" dotText="false">
        <img src="https://unsplash.it/800/500/?image=257" draggable="false"/>
    </paper-carousel>   
oscarsolas commented 7 years ago

Hi @dman777,

The component does not support native shadow-dom, only shady-dom. This issue has already been discussed in #11.

Thanks.