mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fix et2-selectbox was not properly firing clear events
This commit is contained in:
parent
a594f77601
commit
e239125fc4
@ -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