You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the first thing in a multiline template (created using html) is another template, that nested template renders at times when it shouldn't.
E.g.
html`${html`foo`} `
Note that whitespace in the outer template affect whether this occurs or not. If there are no linebreaks (e.g. html`${html`foo`}` ) everything works properly. If there is a space/linebreak before the nested template in a multi-line template, everything works. E.g.
🐛 Bug Report
If the first thing in a multiline template (created using
html
) is another template, that nested template renders at times when it shouldn't.E.g.
Note that whitespace in the outer template affect whether this occurs or not. If there are no linebreaks (e.g.
html`${html`foo`}`
) everything works properly. If there is a space/linebreak before the nested template in a multi-line template, everything works. E.g.💻 Repro or Code Sample
See Stackblitz
🤔 Expected Behavior
The inner template should not be rendered (when, say, the outer template is excluded by a
when
condition).😯 Current Behavior
The inner template keeps getting rendered, even when the rest of the containing template does not.
🔦 Context
Ran into this bug when authoring a custom component that uses a nested template.
The text was updated successfully, but these errors were encountered: