diff --git a/src/accounting/static/js/original-line-item-selector.js b/src/accounting/static/js/original-line-item-selector.js index 2aa6a1e..aecfe46 100644 --- a/src/accounting/static/js/original-line-item-selector.js +++ b/src/accounting/static/js/original-line-item-selector.js @@ -96,9 +96,7 @@ class OriginalLineItemSelector { for (const option of this.#options) { this.#optionById[option.id] = option; } - this.#query.addEventListener("input", () => { - this.#filterOptions(); - }); + this.#query.oninput = () => this.#filterOptions(); } /**