Skip to content

Commit

Permalink
Prevent showing favorites suggestion tray when omniBar text field is …
Browse files Browse the repository at this point in the history
…not editing
  • Loading branch information
dus7 committed Nov 26, 2024
1 parent e8b8322 commit 6585bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ extension MainViewController: OmniBarDelegate {

func onOmniQueryUpdated(_ updatedQuery: String) {
if updatedQuery.isEmpty {
if newTabPageViewController != nil {
if newTabPageViewController != nil || !omniBar.textField.isEditing {
hideSuggestionTray()
} else {
let didShow = tryToShowSuggestionTray(.favorites)
Expand Down

0 comments on commit 6585bfb

Please sign in to comment.