From 88363e0d1ce2cb51c44728b2ed835443e9c551b0 Mon Sep 17 00:00:00 2001
From: Alexei Koshelev <aleksei.koshelev@onlyoffice.com>
Date: Mon, 14 Nov 2022 15:01:34 +0300
Subject: [PATCH] Fix bug

---
 apps/common/main/lib/view/Comments.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/common/main/lib/view/Comments.js b/apps/common/main/lib/view/Comments.js
index 3eb8ff0c5..2cee62927 100644
--- a/apps/common/main/lib/view/Comments.js
+++ b/apps/common/main/lib/view/Comments.js
@@ -101,7 +101,7 @@ define([
             disableTextBoxButton: function(textboxEl) {
                 var button = $(textboxEl.siblings('#id-comments-change')[0]);
 
-                if(textboxEl.val().trime().length > 0) {
+                if(textboxEl.val().trim().length > 0) {
                     button.removeAttr('disabled');
                     button.removeClass('disabled');
                 } else {