mirror of
https://github.com/google/blockly.git
synced 2026-01-18 06:17:12 +01:00
Fixed fields still being editable on non-editable blocks.
This commit is contained in:
@@ -369,7 +369,8 @@ Blockly.Field.prototype.updateEditable = function() {
|
||||
* @return {boolean} Whether this field is clickable.
|
||||
*/
|
||||
Blockly.Field.prototype.isClickable = function() {
|
||||
return !!this.showEditor_ && (typeof this.showEditor_ === 'function');
|
||||
return !!this.sourceBlock_ && this.sourceBlock_.isEditable() &&
|
||||
!!this.showEditor_ && (typeof this.showEditor_ === 'function');
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user