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
Lucas IslaLucas Isla 

How to disable input caching on ui:inputDate

Hi,
I currently have a lightning component with a form that includes a ui:inputDate. It seems that this input is showing cached values, which appear over the date picker calendar when first clicking into the empty input:
User-added image
Is there anything I can do to disable this feature? I don't believe there is an attribute on ui:inputDate that can achieve this.
Thanks!
Paras singh 5Paras singh 5
Hi Lucas,
try this code,

<aura:attribute name="today" type="Date" default=""/>
<ui:inputDate aura:id="expdate" label="Today's Date" class="field" value="{!v.today}" displayDatePicker="true" />