You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement related to a problem? Please describe.
Currently, the Image component does not change state when an image is uploading. So if you upload a large image, there may be several seconds where nothing is happening. As a user this can be confusing. I suggest adding callback props to the component, one that runs when an upload starts and another that runs when an upload finishes. This way our components that use the Image component can provide an upload state. Alternatively, the Image component could handle that state itself.
Is your enhancement related to a problem? Please describe.
Currently, the
Image
component does not change state when an image is uploading. So if you upload a large image, there may be several seconds where nothing is happening. As a user this can be confusing. I suggest adding callback props to the component, one that runs when an upload starts and another that runs when an upload finishes. This way our components that use theImage
component can provide an upload state. Alternatively, theImage
component could handle that state itself.https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/media-placeholder/README.md#onfilespreupload
onFilesPreUpload
is probably useful.Designs
No response
Describe alternatives you've considered
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: