Fix click targets on single-field blocks (#927)

This commit is contained in:
Rachel Fenichel 2017-06-07 11:10:03 -07:00 committed by GitHub
parent 35c48ab72e
commit 2c7e7227bf

View file

@ -179,7 +179,7 @@ Blockly.Field.prototype.init = function() {
this.render_();
this.size_.width = 0;
this.mouseDownWrapper_ =
Blockly.bindEventWithChecks_(this.fieldGroup_, 'mousedown', this,
Blockly.bindEventWithChecks_(this.getClickTarget_(), 'mousedown', this,
this.onMouseDown_);
};