Skip to content

EspoCRM – Open Source CRM Application

comment

Yuri Kuznetsova9d059c0df38
diff --git a/client/src/views/fields/text.js b/client/src/views/fields/text.js
index 614fb43f19..b8bbc0fa0d 100644
--- a/client/src/views/fields/text.js
+++ b/client/src/views/fields/text.js
@@ -655,6 +655,8 @@ class TextFieldView extends BaseFieldView {
event.preventDefault();
if (match[3].trim() === '') {
+ // @todo Skip handling if no enumeration line before.
+
target.value = before.substring(0, match.index) + '\n' + after;
target.selectionStart = target.selectionEnd = target.value.length - after.length;