mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-08-16 19:30:21 +03:00
Forms: fix check for field focus in renderFormFieldState when the focus mode is ShowAugmentedField
This commit is contained in:
parent
293df29db8
commit
2e0925303d
@ -836,7 +836,7 @@ renderFormFieldState fr (FormFieldState st _ _ fields helper concatFields visMod
|
||||
in (n, maybeFieldVisible $ maybeInvalid $ renderField fieldFoc st) : renderFields fs
|
||||
(fieldNames, renderedFields) = unzip $ renderFields fields
|
||||
maybeHelperVisible =
|
||||
if visMode == ShowAugmentedField then visible else id
|
||||
if foc && visMode == ShowAugmentedField then visible else id
|
||||
in maybeHelperVisible $ helper $ maybeVisible $ concatFields renderedFields
|
||||
|
||||
-- | Dispatch an event to the currently focused form field. This handles
|
||||
|
Loading…
Reference in New Issue
Block a user