Fix search tab not focusing correctly (#1529)
This commit is contained in:
parent
49b603c756
commit
9addd3f6d1
@ -762,8 +762,9 @@ class Backend {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const openInTab = async () => {
|
const openInTab = async () => {
|
||||||
const tab = await this._findTabs(1000, false, predicate, false);
|
const tabInfo = await this._findTabs(1000, false, predicate, false);
|
||||||
if (tab !== null) {
|
if (tabInfo !== null) {
|
||||||
|
const {tab} = tabInfo;
|
||||||
await this._focusTab(tab);
|
await this._focusTab(tab);
|
||||||
if (queryParams.query) {
|
if (queryParams.query) {
|
||||||
await this._updateSearchQuery(tab.id, queryParams.query, true);
|
await this._updateSearchQuery(tab.id, queryParams.query, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user