File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 81
81
}
82
82
}
83
83
84
- #onPopupShowing( event ) {
84
+ // note: It's async on purpose so we can render the popup before processing the emojis
85
+ async #onPopupShowing( event ) {
85
86
if ( event . target !== this . #panel) return ;
86
87
this . searchInput . value = '' ;
87
88
const emojiList = this . emojiList ;
95
96
} ) ;
96
97
emojiList . appendChild ( item ) ;
97
98
}
98
- this . searchInput . focus ( ) ;
99
+ setTimeout ( ( ) => {
100
+ this . searchInput . focus ( ) ;
101
+ } , 500 ) ;
99
102
}
100
103
101
104
#onPopupHidden( event ) {
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ body > #confetti {
74
74
.zen-emojis-picker-emoji {
75
75
appearance : none;
76
76
font-size : 14px ;
77
+ padding : 0px !important ;
77
78
& image {
78
79
display : none;
79
80
}
Original file line number Diff line number Diff line change 186
186
}
187
187
)
188
188
. then ( ( ) => {
189
+ this . inputName . focus ( ) ;
189
190
gZenWorkspaces . workspaceElement ( this . workspaceId ) . hidden = false ;
190
191
this . resolveInitialized ( ) ;
191
192
} ) ;
199
200
workspace . containerTabId = this . currentProfile ;
200
201
await gZenWorkspaces . saveWorkspace ( workspace ) ;
201
202
202
- if ( gZenVerticalTabsManager . _canReplaceNewTab ) {
203
- BrowserCommands . openTab ( ) ;
204
- }
205
-
206
203
await this . #cleanup( ) ;
207
204
208
205
await gZenWorkspaces . _organizeWorkspaceStripLocations ( workspace , true ) ;
You can’t perform that action at this time.
0 commit comments