Skip to content

Commit

Permalink
minor: update 'field_input.ts' file (#7514)
Browse files Browse the repository at this point in the history
* minor: update return type of widgetCreate_

Signed-off-by: Akanksha Kushwaha <[email protected]>

* minor: remove 'as HTMLInputElement' cast

Signed-off-by: Akanksha Kushwaha <[email protected]>

* minor: update return type and cast

Signed-off-by: Akanksha Kushwaha <[email protected]>

---------

Signed-off-by: Akanksha Kushwaha <[email protected]>
  • Loading branch information
aku1310 authored Sep 22, 2023
1 parent bb42535 commit 9051889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/field_input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9051889

Please sign in to comment.