We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
loading="lazy"
Describe the bug Cannt view image if img element has loading="lazy" attribute
To Reproduce
<div class="c-image-viewer" ref="viewer" > <img class="c-image-viewer__image" loading="lazy" v-for="(src, index) in images" :src="src.thumbnail" :data-src="src.source" :key="src.source" @click="handleViewImage(index)" /> </div>
methods: { handleViewImage(index) { if (!this.viewer) { this.viewer = new Viewer(this.$refs.viewer, { url(image) { return image.src }, }) } this.viewer.view(index) }, },
Expected behavior should be
Screenshots but
If I remove loading="lazy" attribute, everything goes well
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Just remove the loading attribute from the inheritedAttributes option.
loading
inheritedAttributes
Sorry, something went wrong.
@fengyuanchen 只能这样了吗?是否有优化空间呢?
No branches or pull requests
Describe the bug
Cannt view image if img element has
loading="lazy"
attributeTo Reproduce
Expected behavior
![image](https://user-images.githubusercontent.com/11537595/89416617-1e18de80-d760-11ea-8399-0c1b94b535f3.png)
should be
Screenshots
![image](https://user-images.githubusercontent.com/11537595/89416273-9501a780-d75f-11ea-837d-8cbb8c780d25.png)
but
If I remove
loading="lazy"
attribute, everything goes wellDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: