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 block - Update image url #2652

Merged
merged 2 commits into from
Sep 25, 2020
Merged

Conversation

geriux
Copy link
Contributor

@geriux geriux commented Sep 22, 2020

Fixes WordPress/gutenberg#25418

Gutenberg PR -> WordPress/gutenberg#25529

An issue was reported of the Image block not keeping its image size after duplicating, after some investigation it turns out that if the block is not selected while an upload is in process it won't request the image data, sizes, and resized URL when it finishes.

On the web editor, it works differently because when the post request is made to upload the image it returns the resized URL and data, where in mobile it just returns the full size URL of the image.

This PR handles the case of updating the final resized URL of the image when the block is not selected and there's an ongoing upload.

To test check the Gutenberg PR description.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

Copy link
Contributor

@chipsnyder chipsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peril-wordpress-mobile
Copy link

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@geriux geriux merged commit ecb1c5c into develop Sep 25, 2020
@geriux geriux deleted the fix/image-url-block-not-selected branch September 25, 2020 10:52
@cameronvoell cameronvoell mentioned this pull request Sep 29, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicating an Image block not working consistently
2 participants