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:
Ebrahim Haji
2024-01-19 10:13:32 -06:00
committed by GitHub
parent f2591dee89
commit e715269f0b

View File

@@ -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();