Skip to content

Comments

Warn when x-for template has multiple root elements#4752

Open
calebporzio wants to merge 1 commit intomainfrom
x-for-table-docs
Open

Warn when x-for template has multiple root elements#4752
calebporzio wants to merge 1 commit intomainfrom
x-for-table-docs

Conversation

@calebporzio
Copy link
Collaborator

@calebporzio calebporzio commented Feb 18, 2026

Summary

Adds a console.warn when an x-for template has multiple root elements. Currently only the first is rendered and the rest are silently dropped — this makes the failure visible.

Based on the problem identified in #4730 by @NightFurySL2001.

Test plan

  • All 34 existing x-for tests pass

🤖 Generated with Claude Code

@calebporzio calebporzio changed the title Warn on multi-root x-for templates and document table workaround Warn when x-for template has multiple root elements Feb 18, 2026
x-for silently discards all but the first child element of a template.
This adds a console.warn so users know what's happening instead of
debugging invisible behavior.

Co-Authored-By: NFSL2001 <NightFurySL2001@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant