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

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

@luwes

Description

@luwes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions