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
AbhynavAbhynav 

Uncaught afterRender threw an error in 'markup://ui:inputDate' [a.split is not a function]

<aura:iteration items="{!v.Erecord}" var="obj"> 
    <div style="{!(obj.Typee=='DATE')?'display:block':'display:none'}"> 
        <ui:inputDate displayDatePicker="true" label="{!obj.Fieldd}" labelClass="{!obj.ApiNamee}"           value="{!obj.Valuee}" change="{!c.onBoardChange}"/> 
    </div> 
</aura:iteration>

Hi,

Above is the code I am using in lightning. Erecord is the wrapper list which is having wrappers for a field's information such as
  • Fieldd : is having label name of a field.
  • Valuee : is the value of that field.
  • Apinamee : is having apiname of the field.
  • Typee : is the type of the field.
So if I am iterating the wrapper like this, its showing error on console log.

Uncaught afterRender threw an error in 'markup://ui:inputDate' [a.split is not a function]
LBKLBK
Can I take a look at your Wrapper class please?
AbhynavAbhynav
Hi LBK,

This is my wrapper class code.
public class WrapperClass {    
     @AuraEnabled
        public String Fieldd;
    
     @AuraEnabled
        public String ApiNamee;
    
     @AuraEnabled
        public Object Valuee;
    
     @AuraEnabled
        public String Typee;
}

Regards,
Abhynav