mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Trigger change evnt on typedInput when type changes and options present
Fixes #2160
This commit is contained in:
parent
91473e731e
commit
6a57d25f4a
@ -159,11 +159,11 @@
|
|||||||
that.uiSelect.css("margin"+d,m);
|
that.uiSelect.css("margin"+d,m);
|
||||||
that.input.css("margin"+d,0);
|
that.input.css("margin"+d,0);
|
||||||
});
|
});
|
||||||
|
|
||||||
["type","placeholder"].forEach(function(d) {
|
["type","placeholder"].forEach(function(d) {
|
||||||
var m = that.element.attr(d);
|
var m = that.element.attr(d);
|
||||||
that.input.attr(d,m);
|
that.input.attr(d,m);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.uiSelect.addClass("red-ui-typedInput-container");
|
this.uiSelect.addClass("red-ui-typedInput-container");
|
||||||
|
|
||||||
@ -635,6 +635,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.input.trigger('change',this.propertyType,this.value());
|
||||||
} else {
|
} else {
|
||||||
if (this.optionSelectTrigger) {
|
if (this.optionSelectTrigger) {
|
||||||
this.optionSelectTrigger.hide();
|
this.optionSelectTrigger.hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user