mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Et2Select: (multiple=false) When searching and user selects a value, abort search and show all non-matching entries again
This commit is contained in:
parent
4d8bd89952
commit
b136958425
@ -575,17 +575,25 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
||||
});
|
||||
}
|
||||
}
|
||||
else if(!this.multiple && this.searchEnabled)
|
||||
{
|
||||
// Stop all the search stuff when they select an option
|
||||
// this shows all non-matching options again
|
||||
this._handleSearchAbort(event);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Value was cleared
|
||||
*/
|
||||
_handleClear()
|
||||
_handleClear(e)
|
||||
{
|
||||
this._selected_remote = [];
|
||||
|
||||
if(!this.multiple && this.searchEnabled)
|
||||
{
|
||||
this._handleSearchAbort(e);
|
||||
|
||||
// Restore label styling
|
||||
this.shadowRoot.querySelector("[part='display-label']").style.display = "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user