From 6585bfbcc0fe4fd8a58243ade0a47ec6d309118b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20=C5=9Apiewak?= Date: Tue, 26 Nov 2024 15:36:13 +0100 Subject: [PATCH] Prevent showing favorites suggestion tray when omniBar text field is not editing --- DuckDuckGo/MainViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuckDuckGo/MainViewController.swift b/DuckDuckGo/MainViewController.swift index 8a51278c6f..feea5cbab8 100644 --- a/DuckDuckGo/MainViewController.swift +++ b/DuckDuckGo/MainViewController.swift @@ -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)