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.
1 parent 6aab7cd commit 6031382Copy full SHA for 6031382
src/components/PasswordStrengthMeter.vue
@@ -14,7 +14,9 @@
14
:required="required"
15
:disabled="disabled"
16
v-bind:value="value"
17
- @input="evt => emitValue(evt.target.value)"
+ @input="evt => emitValue('input', evt.target.value)"
18
+ @blur="evt => emitValue('blur', evt.target.value)"
19
+ @focus="evt => emitValue('focus', evt.target.value)"
20
>
21
<div class="Password__icons">
22
<div
@@ -258,8 +260,8 @@
258
260
this.$data._showPassword = true
259
261
}
262
},
- emitValue (value) {
- this.$emit('input', value)
263
+ emitValue (type, value) {
264
+ this.$emit(type, value)
265
this.password = value
266
267
0 commit comments