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
Vivekh88Vivekh88 

Input value is not loading on first time page load in lightning?

Hi,

I have a Input field on a table. When i load the lightning page for the first time the value of input is empty. But when i refresh the page am able to see the value. Am calling the brand in init() only. Still am not able to populate value on first time page load. What is the issue?
 
Component:
<div class="cell brand clickable" onclick="{!c.handleSort}" data-changes-field-name="brand.Name" data-current-field-name="Product_Brand__c">
    <input value="BRAND" readonly="true"/>
        <div class="sort-icon">
	    <aura:if isTrue="{!v.changesSortField == 'brand.Name'}">
		 <lightning:icon iconName="{! v.sortDirection > 0 ? 'utility:arrowdown' : 'utility:arrowup'}" size="xx-small"></lightning:icon>
			 <aura:set attribute="else">
	                      <lightning:icon iconName="utility:sort" size="xx-small" class="inactive">
                              </lightning:icon>
			 </aura:set>
	     </aura:if>
	 </div>
      <div class="click-target"></div>
 </div>
Thanks
Vivek