From aae15f01f4eca73fe3b484d591e90de4289265e1 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Thu, 13 Dec 2018 12:52:55 -0800 Subject: [PATCH] Groups events fired during field input change --- core/field_textinput.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/field_textinput.js b/core/field_textinput.js index 1f6daf975..86858b4fe 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -281,7 +281,9 @@ Blockly.FieldTextInput.prototype.onHtmlInputChange_ = function(_e) { var text = htmlInput.value; if (text !== htmlInput.oldValue_) { htmlInput.oldValue_ = text; + Blockly.Events.setGroup(true); this.setValue(text); + Blockly.Events.setGroup(false); this.validate_(); } else if (goog.userAgent.WEBKIT) { // Cursor key. Render the source block to show the caret moving.