fix: prevent block change event firing if editing is cancelled

This commit is contained in:
Ebrahim Haji
2024-01-18 19:47:27 -06:00
parent f2591dee89
commit 251c796d0c

View File

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