You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/components/browser-session/browser-session-ui.test.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/components/browser-session/browser-session.tsx
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1339,7 +1339,10 @@ export function BrowserSession({
1339
1339
}
1340
1340
: null
1341
1341
setSuggestionsVisible(true)
1342
-
if(document.activeElement!==event.currentTarget){
1342
+
if(
1343
+
document.activeElement!==event.currentTarget||
1344
+
suggestionQuery===null
1345
+
){
1343
1346
setSuggestionOriginUrl(pageState?.url??'')
1344
1347
setSuggestionQuery('')
1345
1348
}
@@ -1433,6 +1436,9 @@ export function BrowserSession({
1433
1436
// Focus has to stay in the omnibox: the user is still typing, and
1434
1437
// the list is driven by arrow keys rather than by tabbing into it.
0 commit comments