From 3d2e20ce0ac46e466d2baa853598c6309b9b7b76 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 8 Jul 2022 09:30:41 -0600 Subject: [PATCH] Avoid error setting placeholder --- api/js/etemplate/Et2Link/Et2LinkEntry.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkEntry.ts b/api/js/etemplate/Et2Link/Et2LinkEntry.ts index f48d804875..08ed140872 100644 --- a/api/js/etemplate/Et2Link/Et2LinkEntry.ts +++ b/api/js/etemplate/Et2Link/Et2LinkEntry.ts @@ -221,7 +221,10 @@ export class Et2LinkEntry extends Et2InputWidget(FormControlMixin(ValidateMixin( set placeholder(new_value) { - this._searchNode.placeholder = new_value; + if(this._searchNode) + { + this._searchNode.placeholder = new_value; + } } protected _bindListeners()