fix fragment macro, resolves #227

This commit is contained in:
roman01la
2021-03-05 17:01:17 +02:00
parent 7651e31c22
commit 4119e51fc2

View File

@ -431,7 +431,7 @@
(defmacro fragment
"(rum/fragment [button] [input] ...)"
[{:keys [key] :as attrs} & children]
[attrs & children]
(let [[attrs children] (if (map? attrs)
[attrs children]
[nil (concat [attrs] children)])]