I've been working on a basic image slideshow where the background image changes based on user selection. However, I've noticed that when I change the image for the first time, the backgroundSize: cover
property seems to disappear. Even if I try changing it again, the issue persists and I'm struggling to understand this behavior...
If you'd like to take a look at my code on stackblitz, here's the link: https://stackblitz.com/edit/angular-3wihf2
You can also view the demo by following this link:
I've even tried adding a CSS class with background-size: cover
, but the issue still persists.
Your assistance would be greatly appreciated!