mirror of https://github.com/status-im/reagent.git
Allow passing :class nil explicitly
This commit is contained in:
parent
bfca4e4d36
commit
18cdfe9c2b
|
@ -147,8 +147,8 @@
|
|||
rst)))
|
||||
|
||||
(defn- merge-class [p1 p2]
|
||||
(if-let [names (class-names (:class p1) (:class p2))]
|
||||
(assoc p2 :class names)
|
||||
(if (or (contains? p1 :class) (contains? p2 :class))
|
||||
(assoc p2 :class (class-names (:class p1) (:class p2)))
|
||||
p2))
|
||||
|
||||
(defn- merge-style [p1 p2]
|
||||
|
|
Loading…
Reference in New Issue