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

Image.tsx中的getImgRef似乎并无作用 #109

Open
invokerzaa opened this issue Nov 13, 2021 · 0 comments
Open

Image.tsx中的getImgRef似乎并无作用 #109

invokerzaa opened this issue Nov 13, 2021 · 0 comments

Comments

@invokerzaa
Copy link

getImgRef似乎并没有发挥预期的作用,onLoad()方法并且if (img?.complete && (img.naturalWidth || img.naturalHeight)) 这行代码触发,而是img自身的onLoad事件,getImgRef和isLoaded去掉之后似乎并无影响?

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