readonly et2-select-mail caused error with 4c00b812ee eg. in mail.display

This commit is contained in:
ralf 2022-09-13 09:15:55 +02:00
parent 52cca3676e
commit c00c6f9e07

View File

@ -949,7 +949,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
this.handleMenuSlotChange();
});
// If we were overlapping edit inputbox with the value display, reset
if(this._activeControls.classList.contains("novalue"))
if(!this.readonly && this._activeControls?.classList.contains("novalue"))
{
this.handleMenuShow();
}