mirror of
https://github.com/google/blockly.git
synced 2026-01-11 19:07:08 +01:00
fix: prevent block change event firing if editing is cancelled
This commit is contained in:
@@ -542,6 +542,7 @@ export abstract class FieldInput<T extends InputTypes> extends Field<
|
||||
} else if (e.key === 'Escape') {
|
||||
this.setValue(
|
||||
this.htmlInput_!.getAttribute('data-untyped-default-value'),
|
||||
false
|
||||
);
|
||||
WidgetDiv.hide();
|
||||
dropDownDiv.hideWithoutAnimation();
|
||||
|
||||
Reference in New Issue
Block a user