1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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;