Et2Email: If user had a valid email typed before blurring the widget, accept it

This commit is contained in:
nathan 2023-12-15 16:31:00 -07:00 committed by ralf
parent 65b2a53843
commit 294b87e3a8

View File

@ -589,6 +589,11 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
const path = event.composedPath();
if(this && !path.includes(this))
{
// If they had something OK typed, use it
if(this.addAddress(this._search.value.trim()))
{
this._search.value = "";
}
this.hide();
}
};