mirror of
https://github.com/tonsky/rum.git
synced 2025-08-03 18:13:19 +08:00
fix fragment macro, resolves #227
This commit is contained in:
@ -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)])]
|
||||
|
Reference in New Issue
Block a user