Et2Select: Avoid JS error if allowFreeEntries=true but editModeEnabled=false

This commit is contained in:
nathan 2022-07-15 13:08:57 -06:00
parent ddd72fd51a
commit 9ebc1e8f15

View File

@ -455,7 +455,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
this._searchInputNode.focus();
this._searchInputNode.select();
}
if(this.allowFreeEntries && !this.multiple)
if(this.editModeEnabled && this.allowFreeEntries && !this.multiple)
{
this.startEdit();
this._editInputNode.select();