Galleria: change detection not working when changing some input properties #12181
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When you change some input properties (p.s. showThumbnails) after galleria is rendered, it not changes galleria DOM, as if not change was detected.
Possible cause:
p-galleriaContent access to galleria variable that is injected in the constructor. When changing some input in galleria that is not an input in galleriaContent will not detect the changes because it not changes the reference of the galleria variable. My guess is that all this galleria.XXXXX variables are not firing a change detection,
primeng/src/app/components/galleria/galleria.ts
Lines 271 to 279 in 610c9b2
Environment
Ubuntu 22.04.1 LTS
Reproducer
https://stackblitz.com/edit/github-dk9yrn
Angular version
14.2.2
PrimeNG version
14.2.1
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
16.18.0
Browser(s)
No response
Steps to reproduce the behavior
@Input() showThumbnails
showThumbnails
variable is set to false, but thumbnails are still shown@Input() autoPlay
autoPlay
variable is set to true, but galleria doesn't start to autoplay.Expected behavior
When changing input properties the component should show the changes correctly.
The text was updated successfully, but these errors were encountered: