From 38f437a87e174e75ed106dc78bbc48cf16c9b846 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Sat, 25 May 2019 17:36:27 -0700 Subject: [PATCH] Fixed angle fields not displaying 0 when given an empty string. --- core/field_textinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_textinput.js b/core/field_textinput.js index 068a5ecc4..7e3e8e65f 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -396,7 +396,7 @@ Blockly.FieldTextInput.prototype.widgetDispose_ = function() { thisField.isBeingEdited_ = false; // No need to call setValue because if the widget is being closed the // latest input text has already been validated. - if (thisField.value_ != thisField.text_) { + if (thisField.value_ !== thisField.text_) { // At the end of an edit the text should be the same as the value. It // may not be if the input text is different than the validated text. // We should fix that.