From ba83be90623a2326284ac0e63edb6c6775e4c368 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 25 Oct 2021 13:54:42 +0100 Subject: [PATCH] Handle changing types of TypedInput repeatedly Fixes #3222 --- .../@node-red/editor-client/src/js/ui/common/typedInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js index 3249a5cbb..9092d4dcf 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js @@ -923,7 +923,7 @@ var previousType = this.typeMap[this.propertyType]; previousValue = this.input.val(); - if (this.typeChanged) { + if (previousType && this.typeChanged) { if (this.options.debug) { console.log(this.identifier,"typeChanged",{previousType,previousValue}) } if (previousType.options && opt.hasValue !== true) { this.oldValues[previousType.value] = previousValue;