upsiflu / less-ui

Write your views across several screen regions, and hide all Ui state in the Url.
https://package.elm-lang.org/packages/upsiflu/less-ui/latest
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

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

Open upsiflu opened 3 months ago

upsiflu commented 3 months ago

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