Skip to content

Commit 31d933b

Browse files
committed
Make field cursors reflect the entire click target area instead of just the field itself
1 parent 6a9ed01 commit 31d933b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/field.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ Blockly.Field.prototype.updateEditable = function() {
296296
if (this.sourceBlock_.isEditable()) {
297297
Blockly.utils.addClass(group, 'blocklyEditableText');
298298
Blockly.utils.removeClass(group, 'blocklyNonEditableText');
299-
this.fieldGroup_.style.cursor = this.CURSOR;
299+
this.getClickTarget_().style.cursor = this.CURSOR;
300300
} else {
301301
Blockly.utils.addClass(group, 'blocklyNonEditableText');
302302
Blockly.utils.removeClass(group, 'blocklyEditableText');
303-
this.fieldGroup_.style.cursor = '';
303+
this.getClickTarget_().style.cursor = '';
304304
}
305305
};
306306

0 commit comments

Comments
 (0)