mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
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:
committed by
GitHub
parent
bb425358bf
commit
9051889c43
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user