mirror of
https://github.com/google/blockly.git
synced 2026-01-12 11:27:14 +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') {
|
} else if (e.key === 'Escape') {
|
||||||
this.setValue(
|
this.setValue(
|
||||||
this.htmlInput_!.getAttribute('data-untyped-default-value'),
|
this.htmlInput_!.getAttribute('data-untyped-default-value'),
|
||||||
|
false
|
||||||
);
|
);
|
||||||
WidgetDiv.hide();
|
WidgetDiv.hide();
|
||||||
dropDownDiv.hideWithoutAnimation();
|
dropDownDiv.hideWithoutAnimation();
|
||||||
|
|||||||
Reference in New Issue
Block a user