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

[@mantine/core] Image: Edit error setting when src updates #3140

Closed

Conversation

Dinishka
Copy link

@Dinishka Dinishka commented Dec 7, 2022

Currently the Image component's placeholder is only visible in the first time when the src is null. If a src is set and then changed to null the placeholder wouldn't show because anytime the src changes the error state becomes false.

So, I changed it to only set the error state to false whenever there's a src. Otherwise it will be set to true.

@rtivital
Copy link
Member

rtivital commented Dec 7, 2022

It is already fixed in #3098

@Dinishka
Copy link
Author

Dinishka commented Dec 8, 2022

Sorry! My bad. I'll close the pull request.

@Dinishka Dinishka closed this Dec 8, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants