From 6ee899e5f0a2b753dbd4d2924b809724f6be9a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 19 Oct 2020 10:44:23 +0200 Subject: [PATCH] Fix multiLine prop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- .../RichContenteditable/RichContenteditable.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/RichContenteditable/RichContenteditable.vue b/src/components/RichContenteditable/RichContenteditable.vue index 5d545cd992..3666434572 100644 --- a/src/components/RichContenteditable/RichContenteditable.vue +++ b/src/components/RichContenteditable/RichContenteditable.vue @@ -112,7 +112,7 @@ export default { v-tooltip="tooltip" :class="{ 'rich-contenteditable__input--empty': isEmptyValue, - 'rich-contenteditable__input--multiline': multiLine, + 'rich-contenteditable__input--multiline': multiline, 'rich-contenteditable__input--overflow': isOverMaxlength, }" :contenteditable="contenteditable" @@ -163,10 +163,10 @@ export default { * Make the contenteditable looks like a textarea or not. * Default looks like a single-line input. * This also handle the default enter/shift+enter behaviour. - * if multiLine, enter = newline; otherwise enter = submit + * if multiline, enter = newline; otherwise enter = submit * shift+enter always add a new line. ctrl+enter always submits */ - multiLine: { + multiline: { type: Boolean, default: false, }, @@ -408,7 +408,7 @@ export default { onEnter(event) { // Prevent submitting if autocompletion menu // is opened or length is over maxlength - if (this.multiLine || this.isOverMaxlength || this.tribute.isActive) { + if (this.multiline || this.isOverMaxlength || this.tribute.isActive) { return }