Merge pull request #3223 from node-red/ti-fix

Handle changing types of TypedInput repeatedly
This commit is contained in:
Nick O'Leary 2021-10-25 13:55:38 +01:00 committed by GitHub
commit 073f0c2a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;