function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LinThawLinThaw 

How to disabled autocomplete for inputText?

Hi there,

How to disabled autocomplete for inputText?
<ui:inputText aura:id="textInputId" class="slds-input" value="{!v.SearchKeyWord}" placeholder="Search..." />

I tried html-autocomplete="off" but it doesn't work.

Is there any good idea?

Regards,
LinThaw
RKSalesforceRKSalesforce
Hi Lin,

There is an Idea out on the IdeaExchange regarding this - and you can follow the commenter's suggestion of using some JS to add the attribute after page load.
 
http://success.salesforce.com/ideaView?id=0873000000078Ro

Regards,
Ramakant
LinThawLinThaw
Thanks Ramakant,
I willl try with some JS.
Regards,
LinThaw