Skip to content
Snippets Groups Projects

Issue #3316026: Disable autocomplete in Chrome

5 files
+ 29
4
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -99,7 +99,9 @@
}
// Disable autocomplete.
$input.attr('autocomplete', 'off');
// @see https://gist.github.com/niksumeiko/360164708c3b326bd1c8
var isChrome = (/chrom(e|ium)/.test(window.navigator.userAgent.toLowerCase()));
$input.attr('autocomplete', (isChrome) ? 'chrome-off-' + Math.floor(Math.random() * 100000000) : 'off');
$input.datepicker(options);
});
Loading