From 9051889c437c9e302577e38444a6e71eb0a0aec9 Mon Sep 17 00:00:00 2001 From: Akanksha Kushwaha <72210364+aku1310@users.noreply.github.com> Date: Sat, 23 Sep 2023 02:20:16 +0530 Subject: [PATCH] minor: update 'field_input.ts' file (#7514) * minor: update return type of widgetCreate_ Signed-off-by: Akanksha Kushwaha * minor: remove 'as HTMLInputElement' cast Signed-off-by: Akanksha Kushwaha * minor: update return type and cast Signed-off-by: Akanksha Kushwaha --------- Signed-off-by: Akanksha Kushwaha --- core/field_input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();