Primeng: Carousel - previous/next button to slide does nothing

Created on 15 Nov 2017  路  11Comments  路  Source: primefaces/primeng

**I'm submitting a
` [x ] bug report => Search github for a similar issue or PR before submitting [ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap [ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
I pass to the carousel a value, with a numVisible to 5. My value is an empty array for a short time and next is an array of objects. so if i click on the next button to slide the carousel it should be slide on the next visible items but the next button do nothing.

Expected behavior
The carousel should be slided on the next visible items, even if the first value is an empty array

Minimal reproduction of the problem with instructions
Pass a value array with more items than the numVisible in an Observable with a pipe async to the carousel

Plunker:

  • PrimeNG version: 4.3.0

  • Browser: [all]

Most helpful comment

+1

All 11 comments

Unable to replicate, please provide a test case based on plunkr below and we'll review again.

http://plnkr.co/edit/6q5v84DWolH6DeAdi70w?p=info

I've updated my post with the plunkr (sorry I don't succeed to make a link). We can see on it that the 2 arrows doesn't work. But if we change the page via the pageLinks dropdown we can after use the arrows.

I have the same problem. What can we do?

+1

I have the same issue. Any fix?

here is the plunker asked
http://plnkr.co/edit/c2pUsV?p=preview

+1

+1

+1

here is the stackblitz of the issue..
https://stackblitz.com/edit/github-trkjme

the issue is always in version 6.0.0-rc.1 , i open new issue here https://github.com/primefaces/primeng/issues/6367

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchristou picture pchristou  路  3Comments

mitosandov picture mitosandov  路  3Comments

Helayxa picture Helayxa  路  3Comments

SchneMa picture SchneMa  路  3Comments

garethlewis picture garethlewis  路  3Comments