From b360d8c4ee0421c1db8da15a3a085e675aeee36c Mon Sep 17 00:00:00 2001 From: milahu Date: Mon, 16 Dec 2019 15:31:36 +0100 Subject: [PATCH] trigger onChange for preset values in StringInput fix minor bug: when i click a preset value i must press enter to trigger the onChange event --- lib/component/StringInput.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/component/StringInput.js b/lib/component/StringInput.js index 609260a..4b2f27d 100644 --- a/lib/component/StringInput.js +++ b/lib/component/StringInput.js @@ -53,6 +53,7 @@ function StringInput(parent,object,value,params) { input.setProperty('value', presets[options.getSelectedIndex()]); self.pushHistoryState(); self.applyValue(); + self._onChange(); }, onPresetDeactivate, Metric.PADDING_PRESET, @@ -136,4 +137,4 @@ StringInput.prototype._onInputDragStart = function () { document.addEventListener(eventUp, onDragFinish, false); }; -module.exports = StringInput; \ No newline at end of file +module.exports = StringInput;