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

Pass type/value on typedInput.change event

This commit is contained in:
Nick O'Leary 2016-06-15 22:04:13 +01:00
parent b21745808b
commit 0d4d51fc39

View File

@ -313,7 +313,7 @@
this.optionSelectLabel.text(value); this.optionSelectLabel.text(value);
} }
this.element.val(value); this.element.val(value);
this.element.trigger('change'); this.element.trigger('change',this.type(),value);
} }
}, },
type: function(type) { type: function(type) {
@ -369,7 +369,7 @@
} }
this.element.show(); this.element.show();
} }
this.element.trigger('change'); this.element.trigger('change',this.propertyType,this.value());
} }
if (image) { if (image) {
image.onload = function() { that._resize(); } image.onload = function() { that._resize(); }