Merge pull request #2246 from BeksOmega/fixes/DisabledDropdowns

Fixed Image Dropdowns on Disabled Blocks not Rendering Correctly.
This commit is contained in:
Rachel Fenichel
2019-02-04 14:41:57 -08:00
committed by GitHub

View File

@@ -204,8 +204,6 @@ Blockly.Field.prototype.init = function() {
this.mouseDownWrapper_ =
Blockly.bindEventWithChecks_(
this.fieldGroup_, 'mousedown', this, this.onMouseDown_);
// Force a render.
this.render_();
};
/**
@@ -375,7 +373,7 @@ Blockly.Field.prototype.render_ = function() {
};
/**
* Updates thw width of the field. This calls getCachedWidth which won't cache
* Updates the width of the field. This calls getCachedWidth which won't cache
* the approximated width on IE/Edge when `getComputedTextLength` fails. Once
* it eventually does succeed, the result will be cached.
*/