Hi! Just curious is it possible to get anchor href value from mouse event? I have code like this:
<a class="xtrasmall center" herf="/signup" (click)="open($event)">Create</a>
and in code I’m trying to get the link using
public open(e: MouseEvent): void {
console.log((e.target as HTMLAnchorElement).href, (e.currentTarget as HTMLAnchorElement).href);
xd.shell.openExternal(e.target.href);
}
but it’s always undefined. Am I doing something wrong here?