Make sure more than two chained classes are translated.
The interop .replace will only replace the first instance of needle. Using clojure.string/replace will swap out all instances of needle and thus allow more than two chained classes.
This commit is contained in:
parent
35e2fadab1
commit
b303840899
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@
|
|||
(.createElementNS js/document resolved-ns tag))
|
||||
(.createElement js/document tag))]
|
||||
(when id (set! (.-id node) id))
|
||||
(when class (set! (.-className node) (.replace class "." " ")))
|
||||
(when class (set! (.-className node) (clojure.string/replace class "." " ")))
|
||||
node))
|
||||
|
||||
;(defn- create-dom-node-simple [tag]
|
||||
|
|
Loading…
Reference in a new issue