mirror of
https://github.com/google/blockly.git
synced 2026-01-17 05:47:10 +01:00
Merge pull request #2558 from BeksOmega/fixes/ReadOnlyFields
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