Skip to content

Fix RepeatedType fields not inheriting Bootstrap column classes#7534

Merged
javiereguiluz merged 1 commit intoEasyCorp:4.xfrom
Mozoou:fix/repeated-type-bootstrap-columns
Apr 9, 2026
Merged

Fix RepeatedType fields not inheriting Bootstrap column classes#7534
javiereguiluz merged 1 commit intoEasyCorp:4.xfrom
Mozoou:fix/repeated-type-bootstrap-columns

Conversation

@Mozoou
Copy link
Copy Markdown
Contributor

@Mozoou Mozoou commented Apr 3, 2026

Symfony defines a repeated_row block in form_div_layout.html.twig hat bypasses form_row entirely, rendering only child rows without any column wrapper. This caused fields using RepeatedType (e.g. password confirmation) to lose their Bootstrap grid classes.

Fix by overriding repeated_row in EasyAdmin's form theme to apply the same column wrapper logic used in form_row.

Fixes #5676

@javiereguiluz javiereguiluz added this to the 4.x milestone Apr 9, 2026
Symfony defines a `repeated_row` block in `form_div_layout.html.twig`
hat bypasses `form_row` entirely, rendering only child rows without
any column wrapper. This caused fields using RepeatedType (e.g. password
confirmation) to lose their Bootstrap grid classes.

Fix by overriding `repeated_row` in EasyAdmin's form theme to apply the
same column wrapper logic used in `form_row`.

Fixes EasyCorp#5676
@javiereguiluz javiereguiluz changed the base branch from 5.x to 4.x April 9, 2026 17:34
@javiereguiluz javiereguiluz force-pushed the fix/repeated-type-bootstrap-columns branch from 4de9d79 to 35ac676 Compare April 9, 2026 17:34
@javiereguiluz
Copy link
Copy Markdown
Collaborator

Thanks for fixing this bug Mohamed.

@javiereguiluz javiereguiluz merged commit 4c36ff8 into EasyCorp:4.x Apr 9, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextField with form type RepeatedType loses default bootstrap column classes

2 participants