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

Placeholder & error callback for SvgUri, SvgFromUri and SvgWithCssUri #1643

Closed
AurangShah opened this issue Sep 25, 2021 · 2 comments
Closed

Comments

@AurangShah
Copy link

I have used SvgUri, SvgFromUri and SvgWithCssUri for loading the SVG from URI.

I just want to know if this library has the feature to load another placeholder image if the URI is not found or is loading a webpage instead of SVG.

It doesn't have the error callback as well.

Please let me know, It's an essential feature I think.

@WoLewicki
Copy link
Member

I think the thing you need has been added in #1503 (see #1503 (comment) how to use it to try and load another svg). There is also #1718 adding same behavior to SvgCssUri. Could you check if it is what you need?

@WoLewicki
Copy link
Member

Closing since #2071 has been merged and it provides better handling of parsing error.

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