From 1c81bf4efab79efd65d332a71bfff78809d472c3 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 20 Jun 2024 11:25:06 +0100 Subject: [PATCH] fix(WFM-37003): validation in inputdialog onSetText --- lib/src/components/molecules/input_dialog.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/components/molecules/input_dialog.dart b/lib/src/components/molecules/input_dialog.dart index 3a04c9b..8fdf4d1 100644 --- a/lib/src/components/molecules/input_dialog.dart +++ b/lib/src/components/molecules/input_dialog.dart @@ -171,9 +171,12 @@ class ZdsInputDialogState extends State { children: [ 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,