Skip to content

Commit

Permalink
fix(is-valid-autocomplete): allow autocomplete="one-time-code" (#2336)
Browse files Browse the repository at this point in the history
  • Loading branch information
lencioni authored Jun 30, 2020
1 parent 70efbc0 commit 638346f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/commons/text/is-valid-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export const autocomplete = {
'bday-year',
'sex',
'url',
'photo'
'photo',
'one-time-code'
],
qualifiers: ['home', 'work', 'mobile', 'fax', 'pager'],
qualifiedTerms: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
<input autocomplete="tel-local-suffix" id="pass75" type="tel" />
<input autocomplete="tel-extension" id="pass76" type="tel" />

<input autocomplete="one-time-code" id="pass77" />

<input autocomplete="street-address" id="fail6" type="file" />
<input autocomplete="bday-month" type="month" id="fail7" />
<input type="NUMBER" autocomplete="email" id="fail8" />
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
["#pass73"],
["#pass74"],
["#pass75"],
["#pass76"]
["#pass76"],
["#pass77"]
]
}

0 comments on commit 638346f

Please sign in to comment.