Explorar o código

fix(webapp): keep spaces while appending record content, fixes #514

Peter Thomassen %!s(int64=4) %!d(string=hai) anos
pai
achega
4693451f68
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      webapp/src/components/Field/Record.vue

+ 1 - 1
webapp/src/components/Field/Record.vue

@@ -181,7 +181,7 @@ export default {
       const n = (trimmed.match(/ /g) || []).length;
       const diff = Math.max(0, (this.fields.length - 1) - n);
       trimmed += ' '.repeat(diff);
-      if (caretPosition === undefined || caretPosition < trimmed.length) {
+      if (caretPosition < trimmed.length) {
         value = trimmed;
       }