Skip to content

Commit d5d2dd6

Browse files
pdanpdanrstoenescu
authored andcommitted
QInput: fix textarea set (quasarframework#2245)
1 parent d94c266 commit d5d2dd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/input/QInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export default {
260260
}),
261261
domProps: { value: this.model },
262262
on: {
263-
input: e => { this.model = e.target.value },
263+
input: this.__set,
264264
focus: this.__onFocus,
265265
blur: this.__onInputBlur,
266266
keydown: this.__onKeydown,

src/mixins/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default {
6161
})
6262
},
6363
__onKeydown (e) {
64-
if (e.keyCode === 13) {
64+
if (this.type !== 'textarea' && e.keyCode === 13) {
6565
this.__emit()
6666
}
6767
this.$emit('keydown', e)

0 commit comments

Comments
 (0)