mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Fix text list insert
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user