I’m seeing chrome try and autofill various textbox’s in my UI and I want to be able to disable it.
If I follow this article it looks like pretty tricky and I wondered if you had any ideas on how to do it in Wisej.
https://stackoverflow.com/questions/47775041/disable-autofill-in-chrome-63
Hi Luca, I believe this is more of a chrome issue. While Wisej is outputting the correct html chrome is ignoring it. I think there are a bunch of hacks people have to use to work around it.
I tried with Wisej TextBox.Autocomplete off and directly in jsfiddle with chrome and it works fine. The tag is <input autocomplete=”off”/>. If you inspect the page in chrome you’ll see the wisej generates the correct html.
Hi Luca,
Do you have any update about this fix ?
I set AutoComplete to “Off” but Chrome still fill the textbox whit data.
Wisej 1.4.86
Chrome 66.0.3359.139 (64 bit)
Thank you!
We have the AutoComplete property. Set it to off and it’s supposed to disable the autocomplete. I wrote “supposed” because it doesn’t work as it should (fixed in the current build). But you can also fix it with a simple workaround in your TextBox base class:
protected override OnWebRender(dynamic config) {
base.OnWebRender((object)config);
config.autoComplete = this.AutoComplete;
}
HTH
Please login first to submit.