diff --git a/core/field_input.ts b/core/field_input.ts index 22c6765b4..140f8d1ce 100644 --- a/core/field_input.ts +++ b/core/field_input.ts @@ -375,7 +375,7 @@ export abstract class FieldInput extends Field< * * @returns The newly created text input editor. */ - protected widgetCreate_(): HTMLElement { + protected widgetCreate_(): HTMLInputElement | HTMLTextAreaElement { const block = this.getSourceBlock(); if (!block) { throw new UnattachedFieldError();