Skip to content

fix: interpolate choice item content - #365

Open
han4wluc wants to merge 1 commit into
mainfrom
fix/choice-content-template
Open

han4wluc wants to merge 1 commit into
mainfrom
fix/choice-content-template

Conversation

@han4wluc

Copy link
Copy Markdown
Contributor

Choice item content is never interpolated: "Hello ${variables.name}" shows the binding raw when read through choice.items[i].content in a choice layout.

Reproduce: a choice item whose content contains a variable binding (regression test).

Fix: string content fields are rendered with the choice layout's template data; other item fields are unchanged.

Tests: the regression checks the rendered text and the choice ID; the full suite (2,163 tests) and lint pass.

This branch has not been deployed

No deployments
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