Skip to content

Commit cceee9b

Browse files
committed
Updated autocomplete matcher to accomodate a11y-engine needs
1 parent c5c8e34 commit cceee9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules/autocomplete-matches.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { sanitize } from '../commons/text';
22
import standards from '../standards';
33
import { isVisible } from '../commons/dom';
44

5-
function autocompleteMatches(node, virtualNode) {
5+
function autocompleteMatches(node, virtualNod, flag=false) {
66
const autocomplete = virtualNode.attr('autocomplete');
7-
if (!autocomplete || sanitize(autocomplete) === '') {
7+
if ((!autocomplete || sanitize(autocomplete) === '') && !flag) {
88
return false;
99
}
1010

0 commit comments

Comments
 (0)