mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
parent
8e1b22757b
commit
729bd588f4
1 changed files with 2 additions and 2 deletions
|
@ -175,8 +175,8 @@ Blockly.FieldNumber.prototype.showNumPad_ = function() {
|
|||
button.title = buttonText;
|
||||
button.innerHTML = buttonText;
|
||||
Blockly.bindEvent_(button, 'mousedown', button,
|
||||
Blockly.FieldNumber.numPadButtonTouch_);
|
||||
if (buttonText == '.' && !this.decimalAllowed) {
|
||||
Blockly.FieldNumber.numPadButtonTouch_);
|
||||
if (buttonText == '.' && !this.decimalAllowed_) {
|
||||
// Don't show the decimal point for inputs that must be round numbers
|
||||
button.setAttribute('style', 'visibility: hidden');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue