Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Bug: conditional rendering from TemplateResult -> Text -> TemplateResult #23

Open
luwes opened this issue Apr 1, 2022 · 0 comments
Open

Comments

@luwes
Copy link

luwes commented Apr 1, 2022

Was wondering if there are any limitations with rendering?
We came across a bug where a conditional like below does not work after toggling the title on and off and on again.

html`${props.dialog?.title ? html`<h3>${props.dialog.title}</h3>` : ''}`

Surprisingly this does work

html`${props.dialog?.title ? html`<h3>${props.dialog.title}</h3>` : html``}`

Related to muxinc/elements#165


For example go to elements-demo-vanilla-k15aiiyns-mux.vercel.app/mux-player.html

Open the error dialog with the button below the player, close with the button next to it, open again
=> the dialog title is not showing while it should be showing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant