[Block] File: PDF preview display in editor after toggling inline embed option #62120
Labels
[Block] File
Affects the File Block
Browser Issues
Issues or PRs that are related to browser specific problems
[Type] Bug
An existing feature does not function as intended
Description
When the "Show inline embed" option is toggled off and back on for a PDF (using the File block), the PDF is displayed as a gray box in the editor (backend). Occurs in Safari, but not Chrome or Firefox.
This issue was also mentioned in #55493 (comment), though that issue and resulting PR focused on the frontend display of inline PDFs, not display in the editor.
Step-by-step reproduction instructions
Refreshing the page will restore the PDF preview if the option is enabled.
Screenshots, screen recording, code snippet
Animated GIF that shows:
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: