mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
feat: change blocklyEditableText to blocklyEditableField and blocklyNonEditableText to blocklyNonEditableField BREAKING CHANGE: The blocklyEditableText and blocklyNonEditableText identifiers have been renamed to blocklyEditableField and blocklyNonEditableField respectively. This change may require updates to any existing code that references the old identifiers. (#8475)
This commit is contained in:
@@ -534,12 +534,12 @@ export abstract class Field<T = any>
|
||||
return;
|
||||
}
|
||||
if (this.enabled_ && block.isEditable()) {
|
||||
dom.addClass(group, 'blocklyEditableText');
|
||||
dom.removeClass(group, 'blocklyNonEditableText');
|
||||
dom.addClass(group, 'blocklyEditableField');
|
||||
dom.removeClass(group, 'blocklyNonEditableField');
|
||||
group.style.cursor = this.CURSOR;
|
||||
} else {
|
||||
dom.addClass(group, 'blocklyNonEditableText');
|
||||
dom.removeClass(group, 'blocklyEditableText');
|
||||
dom.addClass(group, 'blocklyNonEditableField');
|
||||
dom.removeClass(group, 'blocklyEditableField');
|
||||
group.style.cursor = '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user