dotnet-websharper / ui

A reactive UI library for WebSharper.
https://websharper-samples.github.io/ui/
Apache License 2.0
77 stars 22 forks source link

`ws-replace` prepends instead of replaces in full-template mode #284

Open granicz opened 7 months ago

granicz commented 7 months ago

I have a template with a ws-replace="MainContainer node, that I use as follows:

type IndexTemplate = Template<"wwwroot/index.html", ClientLoad.FromDocument>

let foo () =
    IndexTemplate()
        // ...
        .MainContainer(...)
        .Bind()

What I find is that the content I add to MainContainer gets prepended to the <body> node, instead of replacing the marker node.