We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f22d4d5 + 4428187 commit 7c2d307Copy full SHA for 7c2d307
components/form-input.vue
@@ -9,6 +9,7 @@
9
:value="value"
10
@input="onInput($event.target.value)"
11
@change="onChange($event.target.value)"
12
+ @keyup="onKeyUp($event)"
13
ref="input"
14
/>
15
<textarea
@@ -21,6 +22,8 @@
21
22
23
:rows="rows"
24
25
+ @change="onChange($event.target.value)"
26
27
28
></textarea>
29
</template>
@@ -56,6 +59,10 @@
56
59
onChange(value) {
57
60
value = this.format(value);
58
61
this.$emit('input', value);
62
+ this.$emit('change', value);
63
+ },
64
+ onKeyUp(e) {
65
+ this.$emit('keyup', e);
66
}
67
},
68
props: {
0 commit comments