I can finally start migrating from 0.16.
Could you please mention that Html.Keyed is not only about optimizations? I've found that having keys is *essential* when nodes are moved/removed/reordered. Without the keys elm-html could assign stateful DOM nodes (<input>, <select>) to a wrong place, breaking application UI.
I would even argue that stateful DOM nodes should have mandatory keys, to prevent weird bugs. But I don't know how to implement it.
Alexey
--
You received this message because you are subscribed to the Google Groups "elm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elm-dev/9724c25f-af3a-4439-9e6d-ce603caa947e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Svg.Keyed is not working correctly, as pointed out by @ibirrer on Slack in #general: in a simple test case using Svg.Keyed.node "g" the comprised Svg elements do not display at all. I was able to fix it by adding the following attribute:
VirtualDom.property "namespace" (Json.string "http://www.w3.org/2000/svg")
I plan to write an issue at github on this.