From 5b83f561701206a032f9be506e0691f906de0ebd Mon Sep 17 00:00:00 2001 From: Guillermo Fuentes Date: Thu, 4 Jul 2024 17:14:12 +0200 Subject: [PATCH] BugFix - Improve TextAreaType - improve --- src/Form/CommentType.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Form/CommentType.php b/src/Form/CommentType.php index a99ad94a4..42af7e0f8 100644 --- a/src/Form/CommentType.php +++ b/src/Form/CommentType.php @@ -33,7 +33,11 @@ public function __construct(string $commentClass) */ public function buildForm(FormBuilderInterface $builder, array $options) { - $builder->add('body', TextareaType::class); + $builder->add('body', TextareaType::class, [ + 'attr' => [ + 'minLength' => 3, + ] + ]); } /**