How can I set the HTML autocomplete attribute on an input which uses Kendo UI AutoComplete widget to a value other than "off"?
So far, I have tried the following code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled</title>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.3.1109/styles/kendo.common.min.css">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.3.1109/styles/kendo.rtl.min.css">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.3.1109/styles/kendo.default.min.css">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.3.1109/styles/kendo.mobile.all.min.css">
<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2021.3.1109/js/angular.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2021.3.1109/js/jszip.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2021.3.1109/js/kendo.all.min.js"></script></head>
<body>
<input type="text" id="countries" autocomplete="one-time-code" />
<script>
$(function(){
var countries = [ "Australia", "Canada", "United States of America"];
var countriesDataSource = new kendo.data.DataSource({
data: countries
});
$('#countries').kendoAutoComplete({
dataSource: countriesDataSource
});
});
</script>
</body>
</html>
But if you see the screenshot, no matter the HTML markup, the input gets the autocomplete="off" attribute (and value). Guessing this is part of the autocomplete widget?
I am trying to get round the Chrome issue reported here where the previous input to an input[type=password] is autofilled with a username / email.
So want to know how to set the autocomplete attribute on a Kendo-ified AutoComplete input, to a value of my choice.
Alternatively, any solid method of avoiding Chrome autofill on the Kendo UI AutoComplete widget would be greatly appreciated.
Thanks in advance