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

Load before swap loses effect if placeholder image is rendered inside a container #28

Open
foubei opened this issue Jun 27, 2019 · 0 comments

Comments

@foubei
Copy link

foubei commented Jun 27, 2019

Hello, thank you for your precious work, amazing react component.

Here I am facing an issue if the placehoder is rendered inside a container, for example:

placeholder={({ ref }) => (
  <div className="placeholder">
       <img ref={ref} src={placeholderSrc} />
   </div>
)}

Please let me if I am missing something on my code.

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

1 participant