Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click reloads all images #474

Open
ghost opened this issue Aug 12, 2021 · 4 comments
Open

Click reloads all images #474

ghost opened this issue Aug 12, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 12, 2021

Hey got a small problem,

sometimes when I click an Img to get a selected border it reloads all images, is this a bug or can I disable it somehow?

<div class="row pictures" v-lazy-container="{ selector: 'img' }">
  <div class="col-4 p-1" v-for="(filter, i) in pictures" :key="filter" :style="`--i: ${i}`">
    <div  @click="selected = i" class="card bg-secondary shadow-sm picture" :class="{'selected': selected === i}">
      <div class="card-body">
        <img class="img-fluid" :data-src="filter.src"/>
      </div>
    </div>
</div>

here a small recording: https://jmp.sh/6Jrjm2O

hope someone can help me :)

@superdiazzz
Copy link

I got same issue, any solution?

@ghost
Copy link
Author

ghost commented Apr 4, 2022

@superdiazzz i use this https://github.com/alexjoverm/v-lazy-image works fine.

@superdiazzz
Copy link

@superdiazzz i use this https://github.com/alexjoverm/v-lazy-image works fine.

I don't see placeholder image in this libs. Or you know how to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@superdiazzz and others