Skip to content

Commit 2fe3c33

Browse files
prevent adding newlines as you type
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
1 parent b396761 commit 2fe3c33

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client/src/components/Form/Elements/FormText.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ export default {
148148
if (val.length === 0) {
149149
return "";
150150
}
151-
return this.multiple
152-
? val.reduce((str_value, item) => str_value + String(item) + "\n", "")
153-
: String(val[0]);
151+
return this.multiple ? val.join("\n") : String(val[0]);
154152
}
155153
return String(val);
156154
},

0 commit comments

Comments
 (0)