Skip to content

Commit

Permalink
fix(WFM-37003): validation in inputdialog onSetText
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton committed Jun 20, 2024
1 parent b2450c6 commit 1c81bf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/components/molecules/input_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,12 @@ class ZdsInputDialogState extends State<ZdsInputDialog> {
children: <Widget>[
Expanded(
child: Semantics(
textField: true,
onTap: _focusNode.requestFocus,
excludeSemantics: true,
onSetText: (value) async {
_controller.text = value;
await _validateText();
},
label: _controller.text.isNotEmpty ? _controller.text : widget.hint,
child: TextFormField(
maxLength: widget.characterCount,
Expand Down

0 comments on commit 1c81bf4

Please sign in to comment.