mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #1786 from node-red-hitachi/0.19-fix-typedInput-error
Fix typedInput error on initialization
This commit is contained in:
commit
7843eccae8
@ -467,7 +467,9 @@
|
|||||||
var opt = this.typeMap[type];
|
var opt = this.typeMap[type];
|
||||||
if (opt && this.propertyType !== type) {
|
if (opt && this.propertyType !== type) {
|
||||||
this.propertyType = type;
|
this.propertyType = type;
|
||||||
this.typeField.val(type);
|
if (this.typeField) {
|
||||||
|
this.typeField.val(type);
|
||||||
|
}
|
||||||
this.selectLabel.empty();
|
this.selectLabel.empty();
|
||||||
var image;
|
var image;
|
||||||
if (opt.icon) {
|
if (opt.icon) {
|
||||||
@ -574,15 +576,17 @@
|
|||||||
}
|
}
|
||||||
this.elementDiv.show();
|
this.elementDiv.show();
|
||||||
}
|
}
|
||||||
if (opt.expand && typeof opt.expand === 'function') {
|
if (this.optionExpandButton) {
|
||||||
this.optionExpandButton.show();
|
if (opt.expand && typeof opt.expand === 'function') {
|
||||||
this.optionExpandButton.off('click');
|
this.optionExpandButton.show();
|
||||||
this.optionExpandButton.on('click',function(evt) {
|
this.optionExpandButton.off('click');
|
||||||
evt.preventDefault();
|
this.optionExpandButton.on('click',function(evt) {
|
||||||
opt.expand.call(that);
|
evt.preventDefault();
|
||||||
})
|
opt.expand.call(that);
|
||||||
} else {
|
})
|
||||||
this.optionExpandButton.hide();
|
} else {
|
||||||
|
this.optionExpandButton.hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.input.trigger('change',this.propertyType,this.value());
|
this.input.trigger('change',this.propertyType,this.value());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user