fix(frontend): add render-to-html function

This commit is contained in:
Andrey Antukh 2019-06-19 09:17:58 +02:00
parent b428d1dc23
commit ea1bfd5eaa
3 changed files with 10 additions and 4 deletions

View file

@ -142,7 +142,7 @@
[own]
(let [[shape] (:rum/args own)
dom (mx/ref-node own "fobject")
html (mx/render-static-html (text-shape-html shape))]
html (dom/render-to-html (text-shape-html shape))]
(set! (.-innerHTML dom) html))
own)
@ -152,7 +152,7 @@
[shape] (:rum/args own)]
(when (not= shape old-shape)
(let [dom (mx/ref-node own "fobject")
html (mx/render-static-html (text-shape-html shape))]
html (dom/render-to-html (text-shape-html shape))]
(set! (.-innerHTML dom) html)))
own))