primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.59k stars 4.62k forks source link

p-galleria autoPlay property renders twice #16301

Open cardiosMircem opened 2 months ago

cardiosMircem commented 2 months ago

Describe the bug

copy paste of the AutoPlay galleria example ([https://primeng.org/galleria#autoplay]) and this is what is shown Screenshot from 2024-08-28 11-34-50

Theme used is aura-dark-pink. With theme aura-light-pink I have the same behaviour.

Removing the AutoPlay property or clicking on it and the gallery is shown correctly.

Environment

Local environment primeflex: 3.3.1 primeicons: 7.0.0

Reproducer

No response

Angular version

18.2.0

PrimeNG version

17.18.9

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

22.4.0

Browser(s)

Chrome 127.0.6533.119 (Official Build) (64-bit)

Steps to reproduce the behavior

copy paste of the AutoPlay galleria example available in the primeng docs ([https://primeng.org/galleria#autoplay]) into your angular 18 app

Expected behavior

The autoplay should render only one image instead of two (both in the main view and in the thumbnails) like this Screenshot from 2024-08-28 11-44-35

Braincompiler commented 4 weeks ago

We have the same problem. And with Version 18 beta3 there are still 2 images, but this time the layout is correct but the 2 images are only half visible.

@cardiosMircem Did you try Angular v17? Or 18.0/18.1? Afaik primeng v17.18+ is only a Angular v18 compatibility patch but not official supporting Angular v18+ 🤔

Even though, the problem still exists in v18-beta3 and Angular v18.2.