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.
2 parents b3e37c0 + 5fea4ec commit dad7acaCopy full SHA for dad7aca
input-autocomplete-behavior.html
@@ -486,11 +486,18 @@
486
var patt = new RegExp( this._scapeString( term.toLowerCase() ) );
487
var matched = [];
488
var candidates = this.localCandidates;
489
+ var noSuggestInactive = Boolean(this.noSuggestInactive);
490
491
if (candidates && candidates.length) {
492
for (var i = 0; i < candidates.length; i ++) {
493
var candidate = candidates[i];
- if (Boolean(this.noSuggestInactive) && !Boolean(candidate.inactive)) {
494
+ if (noSuggestInactive) {
495
+ if (!Boolean(candidate.inactive)) {
496
+ if (patt.test(candidate.text.toLowerCase()) == true){
497
+ matched.push(candidate);
498
+ }
499
500
+ } else {
501
if (patt.test(candidate.text.toLowerCase()) == true){
502
matched.push(candidate);
503
}
0 commit comments