JavaScript function failing after spring'18 release.
event.currentTarget.id
event.target
lightning component
<aura:component implements="force:appHostable" access="global">
<div class="slds-lookup" data-select="multi" data-scope="single" data-typeahead="true">
<div class="slds-lookup__menu slds-hide" role="listbox" aura:id="SObjectList" onmouseover="{!c.handlemouseover}" onblur="{!c.handleblur}">
<ul class="slds-lookup__list" role="presentation">
<aura:iteration items="{!v.sobjectList}" var="record" indexVar="i">
<li class="slds-lookup__item">
<a id="{!record.Id}" data-index="{!i}" href="" role="option" value="{!record.Name}" onmousedown="{!c.selectSObject}">
{!record.Name}
</a>
</li>
</aura:iteration>
</ul>
</div>
</div>
js Controller
selectSObject:function(cmp,event){
var selectedRecord = '';
var selectedId = '';
var sobjectlist = cmp.get('v.sobjectResponseList');
if(typeof event.target == "undefined") {
selectedRecord = cmp.get('v.selectedValue');
selectedId = cmp.get('v.selectedId');
}
else {
console.log('i can see this log');
//failure is here
selectedRecord = event.target.value;
console.log('i don't see this log');
console.log(event.target.id);
selectedId = event.target.id;
if(cmp.get('v.showField')!= null && cmp.get('v.showField') !== '' && typeof cmp.get('v.showField') != "undefined"){
cmp.set('v.selectedRecord',cmp.get('v.sobjectList')[event.target.getAttribute('data-index')]);
cmp.set('v.additionalInfo',cmp.get('v.selectedRecord')[cmp.get('v.showField')]);
}
}
}