Skip to content

Commit 6ee899e

Browse files
committedOct 19, 2020
Fix multiLine prop
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 141a716 commit 6ee899e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/components/RichContenteditable/RichContenteditable.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default {
112112
v-tooltip="tooltip"
113113
:class="{
114114
'rich-contenteditable__input--empty': isEmptyValue,
115-
'rich-contenteditable__input--multiline': multiLine,
115+
'rich-contenteditable__input--multiline': multiline,
116116
'rich-contenteditable__input--overflow': isOverMaxlength,
117117
}"
118118
:contenteditable="contenteditable"
@@ -163,10 +163,10 @@ export default {
163163
* Make the contenteditable looks like a textarea or not.
164164
* Default looks like a single-line input.
165165
* This also handle the default enter/shift+enter behaviour.
166-
* if multiLine, enter = newline; otherwise enter = submit
166+
* if multiline, enter = newline; otherwise enter = submit
167167
* shift+enter always add a new line. ctrl+enter always submits
168168
*/
169-
multiLine: {
169+
multiline: {
170170
type: Boolean,
171171
default: false,
172172
},
@@ -408,7 +408,7 @@ export default {
408408
onEnter(event) {
409409
// Prevent submitting if autocompletion menu
410410
// is opened or length is over maxlength
411-
if (this.multiLine || this.isOverMaxlength || this.tribute.isActive) {
411+
if (this.multiline || this.isOverMaxlength || this.tribute.isActive) {
412412
return
413413
}
414414

0 commit comments

Comments
 (0)
Please sign in to comment.