-
Notifications
You must be signed in to change notification settings - Fork 90
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
Avatar is not updated if src is removed dynamically #69
Comments
+1 |
I can confirm this is a bug. |
This comment has been minimized.
This comment has been minimized.
Same here. bind src={{object.src}} doesn't change the image when has a new model |
any solutions for this ?? |
Same issue here, this question was asked almost a year ago, not sure that's gonna be fixed someday. |
I'm not sure but maybe the current master branch already fixes this. We just don't have a publish date for it. We should test to see if it fixes the issue, otherwise make this a feature request. |
Sounds good. I set a wrong string to src when I want to hide it, but that's not clean though, just a work around |
I am facing the same issue now, but assign random string worked for me |
In a project I am working on, I want to users to be able to choose their own image as avatar, and use the "initials avatar" if they don't have an image. I also want them to be able to remove an image.
When removing the image,
src
is updated tonull
. This does not update the avatar, and the image is still showing.I have made a StackBlitz demo demonstrating my issue.
I use the following workaround right now, but I think this is something the component should be able to handle internally:
The text was updated successfully, but these errors were encountered: