Change target to currentTarget for the click event (#5816)

This commit is contained in:
Joakim Sørensen 2020-05-08 22:31:07 +02:00 committed by GitHub
parent 0c8cd680c2
commit 7f66d5b8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ class HassioRepositoriesDialog extends LitElement {
}
private async _removeRepository(ev: Event) {
const slug = (ev.target as any).slug;
const slug = (ev.currentTarget as any).slug;
const repositories = this._filteredRepositories(this._repos);
const repository = repositories.find((repo) => {
return repo.slug === slug;