mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
fix: Call onFinishEditing_ for fields on mobile. (#7483)
On the desktop, widgetDispose_ will call onFinishEditing_ on close. This was missing in the mobile counterpart, so any cleanups in onFinishEditing_ would not be called. Also update the message string comment while we are touching this code.
This commit is contained in:
@@ -342,6 +342,7 @@ export abstract class FieldInput<T extends InputTypes> extends Field<
|
||||
if (text !== null) {
|
||||
this.setValue(this.getValueFromEditorText_(text));
|
||||
}
|
||||
this.onFinishEditing_(this.value_);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user