Skip to content

Commit 51fa793

Browse files
Fix components remounting in parallel/sequential wrappers (#31)
1 parent 2d82bf5 commit 51fa793

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Lumi/Components/Form.purs

+4-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ build editor = makeStateless (createComponent "Form") render where
135135
Child { key, child } ->
136136
maybe identity keyed key $ child
137137
Wrapper { key, children } ->
138-
maybe identity keyed key $
139-
fragment [ intercalate fieldDivider (map toRow children) ]
138+
R.div
139+
{ key: fromMaybe "" key
140+
, children: [ intercalate fieldDivider (map toRow children) ]
141+
}
140142
Node { label, key, required, validationError, children } ->
141143
maybe identity keyed key $ labeledField
142144
{ label: text body

0 commit comments

Comments
 (0)