From 2fb7bbc7609528b6bc2791714f983a577ee8486d Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 23 Sep 2024 08:41:09 -0600 Subject: [PATCH] Et2Searchbox: Fix clearing searchbox does not display the value as cleared --- api/js/etemplate/Et2Textbox/Et2Searchbox.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/js/etemplate/Et2Textbox/Et2Searchbox.ts b/api/js/etemplate/Et2Textbox/Et2Searchbox.ts index f7a9dfc5f9..0e7740fdd3 100644 --- a/api/js/etemplate/Et2Textbox/Et2Searchbox.ts +++ b/api/js/etemplate/Et2Textbox/Et2Searchbox.ts @@ -78,7 +78,9 @@ export class Et2Searchbox extends Et2Textbox { event.preventDefault(); + const oldValue = this.value; this.value = ''; + this.requestUpdate("value", oldValue); this._oldChange(event); // Call super so it works as expected