-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[FIX] Image lazy load was breaking attachments #10904
Conversation
element.className = element.className.replace('lazy-img', ''); | ||
element.src = src; | ||
} | ||
el.removeAttribute('data-src'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change el
to element
@ggazzo Not sure if this is related, but seeing this as well when running tests as well as my staging environment. When searching for a user, a good majority of the time none of the avatars show up like this: Happy to log a separate bug report if you'd like, But not sure if it's related to this issue. Not seeing anything in the console or logs, except for the initial click on the search button witch throws the following whenever it's clicked
|
thanks @JSzaszvari I think its working now :x |
<3 |
When can we expect this to be merged? |
Amazing @ggazzo - Working great now |
Please add this as hotfix, it is currently causing a lot of issues on my team (we have to resort to the insecure imgur now, or tell people to download the images) |
This is a user script to work around this issue:
|
@glebtv you could remove the lazy-img class... setInterval(function() {
document.querySelectorAll(".attachment-image .lazy-img").forEach(function(el) {
el.src = el.dataset.src;
el.removeAttribute('data-src');
el.className = el.className.replace('lazy-img', '');
})
}, 1000) but I think until the end of day it will be released |
[FIX] Image lazy load was breaking attachments
* master: Bump version to 0.65.1 Merge pull request #10940 from RocketChat/fix-livechat-not-loading Merge pull request #10934 from RocketChat/prevent-sending-exceptions-to-channel-before-startup Merge pull request #10928 from RocketChat/fix-email-notification-link Merge pull request #10904 from RocketChat/lazyload-fix-regression Merge pull request #10851 from RocketChat/leave-room-bug fix search shortcut text Display vertical scrollbar on demand # Conflicts: # .docker/Dockerfile # .docker/Dockerfile.rhel # .sandstorm/sandstorm-pkgdef.capnp # .travis/snap.sh # HISTORY.md # package.json # packages/rocketchat-lib/rocketchat.info
List to check
Avatars
Attachments
Closes #10895