Skip to content

Commit

Permalink
Restore focus on cancel (slab#3780)
Browse files Browse the repository at this point in the history
Closes slab#3779
  • Loading branch information
taozhou-glean authored and luin committed Aug 7, 2023
1 parent 4246b09 commit 21a8dc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions themes/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ class BaseTooltip extends Tooltip {

cancel() {
this.hide();
this.restoreFocus();
}

edit(mode = 'link', preview: string | null = null) {
Expand Down

0 comments on commit 21a8dc4

Please sign in to comment.