summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components/ui
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-15 19:56:18 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-15 19:56:18 +0900
commite6f33e997fbbcdee7b661f4a78b01767b5d6b2f8 (patch)
tree792a93a6fb3934aa759194e8efad72a28b62f994 /src/client/app/common/views/components/ui
parent:v: (diff)
downloadmisskey-e6f33e997fbbcdee7b661f4a78b01767b5d6b2f8.tar.gz
misskey-e6f33e997fbbcdee7b661f4a78b01767b5d6b2f8.tar.bz2
misskey-e6f33e997fbbcdee7b661f4a78b01767b5d6b2f8.zip
:art:
Diffstat (limited to 'src/client/app/common/views/components/ui')
-rw-r--r--src/client/app/common/views/components/ui/input.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/ui/input.vue b/src/client/app/common/views/components/ui/input.vue
index 504f1e32d3..525ff71c08 100644
--- a/src/client/app/common/views/components/ui/input.vue
+++ b/src/client/app/common/views/components/ui/input.vue
@@ -10,13 +10,12 @@
<template v-if="type != 'file'">
<input ref="input"
:type="type"
- :value="v"
+ v-model="v"
:required="required"
:readonly="readonly"
:pattern="pattern"
:autocomplete="autocomplete"
:spellcheck="spellcheck"
- @input="$emit('input', $event.target.value)"
@focus="focused = true"
@blur="focused = false">
</template>
@@ -104,6 +103,8 @@ export default Vue.extend({
this.v = v;
},
v(v) {
+ this.$emit('input', v);
+
if (this.withPasswordMeter) {
if (v == '') {
this.passwordStrength = '';