Skip to content

Commit f669abe

Browse files
committed
options.showNoMatches was treating 'false' as true
1 parent 9667390 commit f669abe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/assets/javascripts/autocomplete-rails-uncompressed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
options[key] = attrVal ? attrVal : value;
8080
}
8181
});
82-
if(arguments[0].length == 0 && options.showNoMatches) {
82+
if(arguments[0].length == 0 && jQuery.inArray(options.showNoMatches, [true, 'true'])) {
8383
arguments[0] = [];
8484
arguments[0][0] = { id: "", label: options.noMatchesLabel };
8585
}

lib/assets/javascripts/autocomplete-rails.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)