alexjoverm / alexjoverm/v-lazy-image

Not working when dynamically changing src on already mounted image

Open
#29 3 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
987
Forks
68
PR merge metrics
No merged PRs in 30d

Description

It doesn't seem to work when dynamically changing the image (in case of a caroussel for example).

I've checked your code and it seems you are not watching the **src** prop change. Your computed property has the **src** as dependency but nothing seems to reset the **intersected** data which make the next loading not work properly (I mean withou any lazy load or anything).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.