Unplanned
Last Updated: 04 Mar 2025 20:29 by Jenifer
Flavien
Created on: 28 Feb 2025 15:59
Category: TextBox
Type: Feature Request
3
Expose autocomplete attribute for Kendo TextBox

Enhancement

Expose autocomplete attribute for Kendo TextBox

Overview

Upon initializing the Kendo UI TextBox, the autocomplete attribute is initially set to off.

Image

While this is suggested on MDN in most scenarios, there are use-cases where it is necessary to set autocomplete to new-password to avoid auto-filling.

Desired Behavior

Extend the API to allow setting the autocomplete attribute. This could be done in a similar way as the inputMode configuration.

Workaround

Use jQuery attr method to set the item in the Ready event

   $(function(){
     $('#textBox').attr('autocomplete', 'new-password');
   });
1 comment
Jenifer
Posted on: 04 Mar 2025 20:29

Having similar issue

It would be nice if in the HTML Attributes it would use that value regardless of default. I was trying to do this which does not work.

Html.Kendo().TextBoxFor(x => x.NewPassword).HtmlAttributes(new { autocomplete = "new-password"})