From 27a6593d27ff196fa82767a206322f03aafeac10 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Mon, 24 Jun 2019 13:34:28 -0700 Subject: [PATCH] Removed Class Option Check from Text Input fromJson (#2588) * Removed class option check from text input fromJson, as text input fields don't accept a class. * Fixed syntax error. --- 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 a79d55e03..ecb93707c 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -67,7 +67,7 @@ goog.inherits(Blockly.FieldTextInput, Blockly.Field); */ Blockly.FieldTextInput.fromJson = function(options) { var text = Blockly.utils.replaceMessageReferences(options['text']); - var field = new Blockly.FieldTextInput(text, options['class']); + var field = new Blockly.FieldTextInput(text); if (typeof options['spellcheck'] === 'boolean') { field.setSpellcheck(options['spellcheck']); }