Skip to content

Commit

Permalink
feat: [DX-1033] Hide helper message in disabled input (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash authored Jan 23, 2024
1 parent c6934ca commit e0a9d91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions optimus/lib/src/common/field_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class _FieldWrapper extends State<FieldWrapper> with ThemeGetter {
),
),
),
if (helperMessage != null)
if (widget.isEnabled && helperMessage != null)
Padding(
padding: widget.size.getHelperPadding(tokens),
child: OptimusCaption(
Expand All @@ -198,7 +198,9 @@ class _FieldWrapper extends State<FieldWrapper> with ThemeGetter {
),
),
),
if (_isUsingBottomHint && _normalizedError.isNotEmpty)
if (widget.isEnabled &&
_isUsingBottomHint &&
_normalizedError.isNotEmpty)
Padding(
padding: widget.size.getErrorPadding(tokens),
child: OptimusFieldError(
Expand Down

0 comments on commit e0a9d91

Please sign in to comment.