Convert: Image to File - File title shows placeholder after conversion despite having title available #9350
Labels
[Feature] Block Transforms
Block transforms from one block to another
[Type] Enhancement
A suggestion for improvement.
Describe the bug
When converting an image into a file component, the image stops rendering as an img tag and instead renders as an a tag. Once converted, the placeholder "Write file name..." shows. If you click the edit button on the block, then save, without amending anything, the File block will correctly show the title as expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Once an image has been changed to a file block, I would expect the image title to be used in the file title field, and to not see the placeholder text.
Screenshots
Changed image block to file block, then duplicated to show HTML. The file knows which image is selected (and the download button works) but the title isn't used.
Desktop (please complete the following information):
OS: Mac Sierra 10.12.5
Browser: Chrome
Version: 67.0.3396.99
Additional context
Gutenberg: 3.6.2
The text was updated successfully, but these errors were encountered: