File blocks show error in editor when added in columns without file name #60062
Labels
[Pri] Normal
[Status] Core Fix Needed
A fix within the Core WordPress or Gutenberg project is required to resolve this issue.
Triaged
To be used when issues have been triaged.
[Type] Bug
User Report
This issue was created following a WordPress customer report
Quick summary
When you add a File block inside of a column and leave the file name blank, returning to the editor shows an error "This block contains unexpected or invalid content" with a button to "Attempt Block Recovery".
Steps to reproduce
What you expected to happen
The File block should show the same way it does when you add the block originally.
What actually happened
The block shows an error message: "This block contains unexpected or invalid content" with a button to "Attempt Block Recovery".
Context
I was working with a user who reported the bug here: 33640478-hc
It looks like the blocks are functioning fine on the live site but show error in the editor side. I did some testing and it happens across all themes I tried, but only inside of a column with no file name specified. The block works as expected outside of a column and/or when a file name is added. The type of file doesn't seem to matter either as all file types I tried came up with the same error. I also tested on both Atomic and Simple sites, no difference in outcome.
Simple, Atomic or both?
Simple, Atomic
Theme-specific issue?
Not theme-specific, all themes affected
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
All
Available workarounds?
No response
Workaround details
No response
The text was updated successfully, but these errors were encountered: