Мне нужно идентифицировать элемент DOM по id или className ... в молнии ауры. У меня есть часть компонента: <ui:inputNumber aura:id="inputWp" class="slds-input" keydown="{!c.handleInput}" updateOn="keydown" value="{!v.item.pricePerWp}" change="{!c.changePrice}"/>
и слушатель событий к нему
let afterRend = this.superAfterRender();
if(component !== 'undefined' || component !== undefined) {
component.getElement().addEventListener('paste', (e) => {
// I want to get id or class of current element here from e value
const toolTipDelay = 3000;
let currentSeparator;
if($A.get("$Locale.decimal") == ',') {
currentSeparator = '.';
}
if($A.get("$Locale.decimal") == '.') {
currentSeparator = ',';
}
if(e.clipboardData.getData('Text').includes(currentSeparator)) {
component.set('v.ShowToolTip', true);
setTimeout(() => {
component.set('v.ShowToolTip', false);
}, toolTipDelay);
return;
}
});
}
return afterRend;
}```
Is it possible to get current element from native js on aura lightning?