From 71e445331b69c17b1f62681030671e085eedcde2 Mon Sep 17 00:00:00 2001 From: Martin Stender Date: Mon, 16 Jul 2018 16:35:53 +0200 Subject: [PATCH] Make it possible to set the value of 'autocomplete' to something else. Recent browser updates doesn't acknowledge autocomplete='off', so this minor change make it possible to have that attribute set to an alternative value. --- jquery.auto-complete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.auto-complete.js b/jquery.auto-complete.js index 330e04a..9a27f10 100644 --- a/jquery.auto-complete.js +++ b/jquery.auto-complete.js @@ -32,7 +32,7 @@ // sc = 'suggestions container' that.sc = $('
'); that.data('sc', that.sc).data('autocomplete', that.attr('autocomplete')); - that.attr('autocomplete', 'off'); + that.attr('autocomplete', that.data('autocomplete-override') || 'off'); that.cache = {}; that.last_val = '';