From e239125fc47683b806f0f507f70ab0eac8ac4ee6 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 26 Sep 2024 14:14:08 -0600 Subject: [PATCH] Fix et2-selectbox was not properly firing clear events --- api/js/etemplate/Et2Textbox/Et2Searchbox.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/api/js/etemplate/Et2Textbox/Et2Searchbox.ts b/api/js/etemplate/Et2Textbox/Et2Searchbox.ts index 0e7740fdd3..7cef5dbcf6 100644 --- a/api/js/etemplate/Et2Textbox/Et2Searchbox.ts +++ b/api/js/etemplate/Et2Textbox/Et2Searchbox.ts @@ -68,24 +68,6 @@ export class Et2Searchbox extends Et2Textbox this.blur(); } } - - /** - * Overwritten to trigger a change/search - * - * @param event - */ - handleClearClick(event : MouseEvent) - { - event.preventDefault(); - - const oldValue = this.value; - this.value = ''; - this.requestUpdate("value", oldValue); - this._oldChange(event); - - // Call super so it works as expected - super.handleClearClick(event); - } } // @ts-ignore TypeScript is not recognizing that this is a LitElement customElements.define("et2-searchbox", Et2Searchbox); \ No newline at end of file