minor: update 'field_input.ts' file (#7514)

* minor: update return type of widgetCreate_

Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com>

* minor: remove 'as HTMLInputElement' cast

Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com>

* minor: update return type and cast

Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com>

---------

Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com>
This commit is contained in:
Akanksha Kushwaha
2023-09-23 02:20:16 +05:30
committed by GitHub
parent bb425358bf
commit 9051889c43

View File

@@ -375,7 +375,7 @@ export abstract class FieldInput<T extends InputTypes> 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();