mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-09-11 15:55:54 +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
|
in (n, maybeFieldVisible $ maybeInvalid $ renderField fieldFoc st) : renderFields fs
|
||||||
(fieldNames, renderedFields) = unzip $ renderFields fields
|
(fieldNames, renderedFields) = unzip $ renderFields fields
|
||||||
maybeHelperVisible =
|
maybeHelperVisible =
|
||||||
if visMode == ShowAugmentedField then visible else id
|
if foc && visMode == ShowAugmentedField then visible else id
|
||||||
in maybeHelperVisible $ helper $ maybeVisible $ concatFields renderedFields
|
in maybeHelperVisible $ helper $ maybeVisible $ concatFields renderedFields
|
||||||
|
|
||||||
-- | Dispatch an event to the currently focused form field. This handles
|
-- | Dispatch an event to the currently focused form field. This handles
|
||||||
|
Loading…
Reference in New Issue
Block a user