remove rows attribute from input

This commit is contained in:
Xiaofeng An 2019-02-08 11:10:47 -05:00
parent dd8531f9c9
commit e8dc019afd

View file

@ -3,11 +3,11 @@
<textarea <textarea
v-if="multiline" v-if="multiline"
ref="textarea" ref="textarea"
:value="text" rows="1"
:id="id" :value="text" :class="classObj" :id="id" :placeholder="placeholder"
@input="text = $event.target.value, $emit('input', $event.target.value), autoResize && resize($event)" @input="text = $event.target.value, $emit('input', $event.target.value), autoResize && resize($event)"
@click="setCaret" @click="setCaret"
@keyup="setCaret" :placeholder="placeholder" rows="1" :class="classObj" @keyup="setCaret"
@keydown.down="cycleForward" @keydown.down="cycleForward"
@keydown.up="cycleBackward" @keydown.up="cycleBackward"
@keydown.shift.tab="cycleBackward" @keydown.shift.tab="cycleBackward"
@ -22,11 +22,10 @@
<input <input
v-else v-else
ref="textarea" ref="textarea"
:value="text" :value="text" :class="classObj" :id="id" :placeholder="placeholder"
:id="id"
@input="text = $event.target.value, $emit('input', $event.target.value), autoResize && resize($event)" @input="text = $event.target.value, $emit('input', $event.target.value), autoResize && resize($event)"
@click="setCaret" @click="setCaret"
@keyup="setCaret" :placeholder="placeholder" rows="1" :class="classObj" @keyup="setCaret"
@keydown.down="cycleForward" @keydown.down="cycleForward"
@keydown.up="cycleBackward" @keydown.up="cycleBackward"
@keydown.shift.tab="cycleBackward" @keydown.shift.tab="cycleBackward"