From e715269f0b2292fd7f40edf9d7cd5c95dc727820 Mon Sep 17 00:00:00 2001 From: Ebrahim Haji <14169174+ebrahim95@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:13:32 -0600 Subject: [PATCH] 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 --- core/field_input.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/field_input.ts b/core/field_input.ts index 2cd4015b0..513047054 100644 --- a/core/field_input.ts +++ b/core/field_input.ts @@ -542,6 +542,7 @@ export abstract class FieldInput extends Field< } else if (e.key === 'Escape') { this.setValue( this.htmlInput_!.getAttribute('data-untyped-default-value'), + false, ); WidgetDiv.hide(); dropDownDiv.hideWithoutAnimation();