Revised the code in the constructor of the JavaScript OriginalLineItemSelector class.

This commit is contained in:
依瑪貓 2023-03-24 07:30:09 +08:00
parent 30e0c7682c
commit 6a8773c531

View File

@ -96,9 +96,7 @@ class OriginalLineItemSelector {
for (const option of this.#options) { for (const option of this.#options) {
this.#optionById[option.id] = option; this.#optionById[option.id] = option;
} }
this.#query.addEventListener("input", () => { this.#query.oninput = () => this.#filterOptions();
this.#filterOptions();
});
} }
/** /**