diff --git a/core/field_checkbox.ts b/core/field_checkbox.ts index 83f460bb9..0773a1f82 100644 --- a/core/field_checkbox.ts +++ b/core/field_checkbox.ts @@ -114,7 +114,7 @@ export class FieldCheckbox extends Field { super.initView(); const textElement = this.getTextElement(); - dom.addClass(textElement, 'blocklyCheckbox'); + dom.addClass(this.fieldGroup_!, 'blocklyCheckboxField'); textElement.style.display = this.value_ ? 'block' : 'none'; }