Skip to content

Commit fcea8b5

Browse files
a21ns1g4tsapertureless
authored andcommitted
feat: Add autocomplete property (#37)
Input elements should have autocomplete attributes (suggested: "new-password"): (More info: https://goo.gl/9p2vKq)
1 parent 404688f commit fcea8b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/PasswordStrengthMeter.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
:placeholder="placeholder"
1414
:required="required"
1515
:disabled="disabled"
16+
:autocomplete="autocomplete"
1617
v-bind:value="value"
1718
@input="evt => emitValue('input', evt.target.value)"
1819
@blur="evt => emitValue('blur', evt.target.value)"
@@ -75,6 +76,14 @@
7576
type: String,
7677
default: 'Please enter your password'
7778
},
79+
/**
80+
* Input field autocomplete
81+
* @type {String}
82+
*/
83+
autocomplete: {
84+
type: String,
85+
default: 'new-password'
86+
},
7887
/**
7988
* Binded value
8089
* @type {Object}

0 commit comments

Comments
 (0)