Select + search: don't try to open search when readonly

This commit is contained in:
nathan 2022-06-24 14:27:49 -06:00
parent 5d915ba5eb
commit bb48e4ecee

View File

@ -471,6 +471,10 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
handleMenuShow()
{
if(this.readonly)
{
return;
}
super.handleMenuShow();
if(this.searchEnabled || this.allowFreeEntries)
@ -490,6 +494,10 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
handleMenuHide()
{
if(this.readonly)
{
return;
}
super.handleMenuHide();
if(this.searchEnabled || this.allowFreeEntries)
{