From 0221e61843cfc81f0f7e6ded447b2880abe9d66f Mon Sep 17 00:00:00 2001 From: Nastya Date: Sat, 17 Feb 2024 03:26:17 +0300 Subject: [PATCH] -- --- src/pages/Questions/Form/FormDraggableList/QuestionPageCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Questions/Form/FormDraggableList/QuestionPageCard.tsx b/src/pages/Questions/Form/FormDraggableList/QuestionPageCard.tsx index b6e3ac65..d7ee4136 100644 --- a/src/pages/Questions/Form/FormDraggableList/QuestionPageCard.tsx +++ b/src/pages/Questions/Form/FormDraggableList/QuestionPageCard.tsx @@ -125,7 +125,7 @@ export default function QuestionsPageCard({ placeholder={`Заголовок ${questionIndex + 1} вопроса`} defaultValue={question.title} onChange={({ target }) => { - if(target.value <= 225)setTitle(target.value) + if(target.value,toString().length <= 225)setTitle(target.value) }} sx={{ width: "100%",