Skip to content

[6.x] Show a placeholder for empty paragraphs in the form builder - #16072

Merged
duncanmcclean merged 2 commits into
6.xfrom
16071
Nov 26, 2026
Merged

duncanmcclean merged 2 commits into
6.xfrom
16071

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

This pull request fixes an issue where newly added paragraphs weren't visible in the form builder's rendered view.

This was happening because a new paragraph doesn't have any text yet, so the form_paragraph fieldtype rendered an empty, zero-height element.

This PR fixes it by showing a subtle "Empty paragraph" placeholder until text has been added.

Before

Before

After

After


Fixes #16071

Amp thread: https://ampcode.com/threads/T-302f9983-fe9b-4e54-87f5-2fb5dfd2e7a6

@duncanmcclean duncanmcclean changed the title [6.x] Forms 2: Show a placeholder for empty paragraphs in the form builder [6.x] Show a placeholder for empty paragraphs in the form builder Nov 26, 2026
@duncanmcclean
duncanmcclean merged commit b336b16 into 6.x Nov 26, 2026
121 of 123 checks passed
@duncanmcclean
duncanmcclean deleted the 16071 branch November 26, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Forms 2.0 - empty paragraphs are not visible in the "rendered" view

2 participants