From 6a8773c531f41a56a385d2c5203790c519d74fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 24 Mar 2023 07:30:09 +0800 Subject: [PATCH] Revised the code in the constructor of the JavaScript OriginalLineItemSelector class. --- src/accounting/static/js/original-line-item-selector.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } /**