mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
fix: prevent block change event firing if editing is cancelled by using keypress (#7794)
* fix: prevent block change event firing if editing is cancelled
* refactor: formatted the code to specifications for commit 251c796d
ran npm run format
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