Fix adding a freeEntry did not trigger change event

This commit is contained in:
nathan 2022-09-22 15:17:56 -06:00
parent a79a0802a1
commit bea34ad403

View File

@ -1114,7 +1114,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
*/ */
public createFreeEntry(text : string) : boolean public createFreeEntry(text : string) : boolean
{ {
if(!this.validateFreeEntry(text)) if(!text || !this.validateFreeEntry(text))
{ {
return false; return false;
} }
@ -1138,6 +1138,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
{ {
this.value = text; this.value = text;
} }
this.requestUpdate("value");
// If we were overlapping edit inputbox with the value display, reset // If we were overlapping edit inputbox with the value display, reset
if(!this.readonly && this._activeControls?.classList.contains("novalue")) if(!this.readonly && this._activeControls?.classList.contains("novalue"))