-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 or src property in CardMedia is not working when changing using getElementById() #11702
Comments
Do you want to do something like this
|
hi @adeelibr your example worked but this property belongs to CSS I guess for setting background image on some view but what about the source since a image can have a source as well as background and i was trying this using the material docs. Just curious if i can do this using docs or i am doing wrong or it was meant to be done like the way you did only. thanks for the help.
Will close this soon just waiting for some replies on doing using docs. |
Oh if you want to change the image for
|
I'm closing for #11675 where we look into using a @adeelibr Thanks for answering @worstkiller's question. |
Hi guys first of all thanks for making this wonderful library. I am new to React and has started my projects using this framework.
While using i had a small problem related to CardMedia, when ever i am trying to change the image or src property using document.getElementById() or something related to this, it's not changing anything. Here is code if i am doing it wrong.
My Environment
The text was updated successfully, but these errors were encountered: