Fix bad previous refactor

This commit is contained in:
Eli Ribble 2026-02-05 01:59:23 +00:00
parent a5d2df9626
commit 41dcf6577a
No known key found for this signature in database

View file

@ -172,13 +172,13 @@ class AddressOrReportInput extends HTMLElement {
} else if (type == "address") {
const index = parseInt(el.dataset.index);
const address = this._addresses[index];
this.SetValue(suggestion);
this.SetValue(address);
// Dispatch custom event
this.dispatchEvent(new CustomEvent('address-selected', {
bubbles: true,
composed: true, // Allows event to cross shadow DOM boundary
detail: {
location: suggestion
location: address
}
}));
}