Revert "Adds type to FieldNumber editor"

This commit is contained in:
alschmiedt
2019-07-18 13:02:53 -07:00
committed by Rachel Fenichel
parent 8d7eaf65e1
commit 954cb5acb1
2 changed files with 0 additions and 20 deletions

View File

@@ -790,14 +790,6 @@ Blockly.Css.CONTENT = [
'border: 1px solid #000 !important;',
'}',
/* Remove the increase and decrease arrows on the field number editor */
'input.blocklyHtmlInput[type=number]::-webkit-inner-spin-button,',
'input.blocklyHtmlInput[type=number]::-webkit-outer-spin-button {',
'-webkit-appearance: none;',
'margin: 0;',
'}',
/* Copied from: goog/css/menu.css */
/*
* Copyright 2009 The Closure Library Authors. All Rights Reserved.

View File

@@ -99,18 +99,6 @@ Blockly.FieldNumber.prototype.setConstraints = function(min, max, precision) {
this.setValue(this.getValue());
};
/**
* Show the inline free-text editor on top of the text.
* @param {boolean=} opt_quietInput True if editor should be created without
* focus. Defaults to false.
* @protected
*/
Blockly.FieldNumber.prototype.showEditor_ = function(opt_quietInput) {
this.setSpellcheck(false);
Blockly.FieldNumber.superClass_.showEditor_.call(this, opt_quietInput);
this.htmlInput_.type = "number";
};
/**
* Ensure that the input value is a valid number (must fulfill the
* constraints placed on the field).