EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fix text list insert
Yurii1e6ecb04233a
diff --git a/client/src/views/fields/text.ts b/client/src/views/fields/text.tsindex dfc4b37750..a2fc518328 100644--- a/client/src/views/fields/text.ts+++ b/client/src/views/fields/text.ts@@ -667,7 +667,7 @@ class TextFieldView<const after = value.substring(selectionEnd);// Last line, a list item syntax.- const match = before.match(/(^|\n)( *[-*]|\d+\.) ([^*\-\n]*)$/);+ const match = before.match(/(^|\n)( *[-*]|\d+\.) ([^\n]*)$/);if (!match) {// Prevent unwanted scroll applied by the browser on enter.