From 21a8dc4154430eabf781e4234ca6c6855f4211e5 Mon Sep 17 00:00:00 2001 From: Tao Zhou Date: Thu, 27 Jul 2023 01:59:47 -0700 Subject: [PATCH] Restore focus on cancel (#3780) Closes #3779 --- themes/base.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/base.ts b/themes/base.ts index c3ca4d6590..5fcdc0308f 100644 --- a/themes/base.ts +++ b/themes/base.ts @@ -235,6 +235,7 @@ class BaseTooltip extends Tooltip { cancel() { this.hide(); + this.restoreFocus(); } edit(mode = 'link', preview: string | null = null) {