Skip to content

Ui.node is ignored if children are [] #61

@upsiflu

Description

@upsiflu

Not rendered:

Ui.node "img"
                [ Attr.src imageInfo.src
                , Attr.alt imageInfo.alt
                ]
                []

Workaround:

Ui.node "img"
                [ Attr.src imageInfo.src
                , Attr.alt imageInfo.alt
                ]
                (text "")

where

text =
    Html.text >> List.singleton >> Ui.singleton

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions