From 6e99d1815455f51b7b3178c7d61e64ee91c03757 Mon Sep 17 00:00:00 2001 From: kudindmitriy Date: Tue, 3 Feb 2026 17:31:30 +0200 Subject: [PATCH] Bob AI: add validation rule to limit the amount of charact... --- src/components/sections/contact/ContactSplitForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/sections/contact/ContactSplitForm.tsx b/src/components/sections/contact/ContactSplitForm.tsx index 2744b5b..ed35f4d 100644 --- a/src/components/sections/contact/ContactSplitForm.tsx +++ b/src/components/sections/contact/ContactSplitForm.tsx @@ -152,7 +152,9 @@ const ContactSplitForm = ({ placeholder={textarea.placeholder} value={formData[textarea.name] || ""} onChange={(value) => { - setFormData({ ...formData, [textarea.name]: value }); + if (value.length <= 500) { + setFormData({ ...formData, [textarea.name]: value }); + } }} required={textarea.required} rows={textarea.rows || 5}