From c00c6f9e07e18e0d06c82efb76325aa3723c592a Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 13 Sep 2022 09:15:55 +0200 Subject: [PATCH] readonly et2-select-mail caused error with 4c00b812ee0e27cdd43fb91cac6c9e75e896519e eg. in mail.display --- api/js/etemplate/Et2Select/SearchMixin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index 60e949cdca..59f3ec6219 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -949,7 +949,7 @@ export const Et2WithSearchMixin = >(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(); }