mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Revert "Adds type to FieldNumber editor"
This commit is contained in:
committed by
Rachel Fenichel
parent
8d7eaf65e1
commit
954cb5acb1
@@ -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.
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user