mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Fix et2-selectbox was not properly firing clear events
This commit is contained in:
parent
89be2d9d38
commit
64bcdcfb56
@ -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);
|
Loading…
Reference in New Issue
Block a user