Carousel broken on initial loading #4163
Labels
Status: Pending Review
Issue or pull request is being reviewed by Core Team
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
The carousel is broken during initial loading with length property of undefined.(due to mobile dropdown)
Error description:
CarouselDemoComponent.html:1 ERROR TypeError: Cannot read property 'length' of undefined
at Carousel.updateMobileDropdown (carousel.js?9b24:97)
at Carousel.render (carousel.js?9b24:115)
at Carousel.ngAfterViewChecked (carousel.js?9b24:71)
at callProviderLifecycles (core.es5.js?de3d:11185)
at callElementProvidersLifecycles (core.es5.js?de3d:11157)
at callLifecycleHooksChildrenFirst (core.es5.js?de3d:11141)
at checkAndUpdateView (core.es5.js?de3d:12246)
at callViewAction (core.es5.js?de3d:12603)
at execComponentViewsAction (core.es5.js?de3d:12535)
at checkAndUpdateView (core.es5.js?de3d:12244)
Version: 4.2.2
Example:
Please refer the example available here https://github.com/sudheerj/generator-jhipster-primeng/tree/master/generators/app/templates/src/main/webapp/app/primeng/data/carousel
The text was updated successfully, but these errors were encountered: