Fork me on GitHub
#rum
<
2017-07-21
>
jimmy10:07:38

hi guys, I just notice using vector as class in rum generate class join with , which doesn't work at all in css. I can hardly think this is mistake of rum, can you guys help me to confirm this:

[:div {:class ["a" "b"] "weird"]
;; html 
;; <div class="a,b"></div>

rauh10:07:24

@nxqd Cannot confirm this.

jimmy10:07:44

@rauh so it's "a b" on your side?

rauh10:07:50

@nxqd Yes:

(sablono.compiler/compile-html [:div {:class ["A" "B"]}])
=> (js/React.createElement "div" #js{:className "A B"})

jimmy10:07:21

wow, what could possibly go wrong here. Thanks for your info

rauh11:07:11

Same for (sablono.interpreter/interpret [:div {:class ["A" "B"]}]) fwiw

jimmy11:07:07

mybad, I use defn instead of defcs ...

jimmy11:07:17

and I used defcard-rg instead of defcard ...

jimmy11:07:04

@rauh thanks for your input!