Skip to content

Commit 5d2f22a

Browse files
committed
hide tabEditor after updating tab state
This is needed for events to be synced to other windows in the correct order
1 parent 7d5cea4 commit 5d2f22a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

js/browserUI.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,14 @@ function switchToTask (id) {
168168
function switchToTab (id, options) {
169169
options = options || {}
170170

171-
tabEditor.hide()
172-
173171
tabs.setSelected(id)
174172
tabBar.setActiveTab(id)
175173
webviews.setSelected(id, {
176174
focus: options.focusWebview !== false
177175
})
176+
177+
tabEditor.hide()
178+
178179
if (!tabs.get(id).url) {
179180
document.body.classList.add('is-ntp')
180181
} else {

0 commit comments

Comments
 (0)