I am doodling with coconut vdom, but noticed a weird bug. Here is the full source. I have not taken time to track it down to smaller reproducible example.
Whats wrong:
In this example, If I remove <div class="leave-me-out"> (but keep its children) in this example, and click the tink_core button, the rendering is totally messed up.
You should see only the pages inside <if ${data.current == "tink_core"}>
But I see the content of some pages outside that <if>, but that's totally wrong because those visible attribute conditions are not even met.
I thought it was related to the <if> in relation to the wrapped div (because adding a wrapping div makes everything work) but it goes deeper; when I change <HtmlView content="${pageContent}"/> to <HtmlView content="${url}"/>, everything works. This maybe suggest something is wrong with @:loaded var pageContent (PageData) ??
There are probably better ways to set this thing up, but afaik I'm not doing super fancy stuff and thus should work with and without that wrapping <div class="leave-me-out">.
I am doodling with coconut vdom, but noticed a weird bug. Here is the full source. I have not taken time to track it down to smaller reproducible example.
Whats wrong:
In this example, If I remove
<div class="leave-me-out">
(but keep its children) in this example, and click thetink_core
button, the rendering is totally messed up.<if ${data.current == "tink_core"}>
<if>
, but that's totally wrong because thosevisible
attribute conditions are not even met.I thought it was related to the
<if>
in relation to the wrapped div (because adding a wrapping div makes everything work) but it goes deeper; when I change<HtmlView content="${pageContent}"/>
to<HtmlView content="${url}"/>
, everything works. This maybe suggest something is wrong with@:loaded var pageContent
(PageData) ??There are probably better ways to set this thing up, but afaik I'm not doing super fancy stuff and thus should work with and without that wrapping
<div class="leave-me-out">
.Here's the full code: https://github.com/markknol/coconut-readme-reader/blob/master/src/Main.hx
(Repo: https://github.com/markknol/coconut-readme-reader)
I am using
-lib markdown
and-lib html-haxe-code-highlighter
(latest from haxelib)