Fix et2-selectbox was not properly firing clear events

This commit is contained in:
nathan 2024-09-26 14:14:08 -06:00 committed by ralf
parent 89be2d9d38
commit 64bcdcfb56

View File

@ -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);