Details block: fix the fallback value for the Summary #68657
Labels
[Block] Details
Affects the Details Block - used to display content which can be shown/hidden
l10n
Localization and translations best practices
[Package] Block library
/packages/block-library
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
To my understanding, the following code is supposed to provide a fallback text for the details summary, when it is empty:
gutenberg/packages/block-library/src/details/save.js
Line 8 in 130b6e2
Not sure that's correct:
'Details'
is not translatable.attributes.summary
returns aRichTextData
object so that the condition is always true. Actually, this condition should check the content of the RichText component used for the Summary.Introduced in #49808
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: