From bb48e4ecee346932ced246b2ddcd54e5a2d737b9 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 24 Jun 2022 14:27:49 -0600 Subject: [PATCH] Select + search: don't try to open search when readonly --- api/js/etemplate/Et2Select/SearchMixin.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index 769e92d0dc..0578c7b6ae 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -471,6 +471,10 @@ export const Et2WithSearchMixin = >(superclass handleMenuShow() { + if(this.readonly) + { + return; + } super.handleMenuShow(); if(this.searchEnabled || this.allowFreeEntries) @@ -490,6 +494,10 @@ export const Et2WithSearchMixin = >(superclass handleMenuHide() { + if(this.readonly) + { + return; + } super.handleMenuHide(); if(this.searchEnabled || this.allowFreeEntries) {