Merge pull request #1532 from zed-industries/fix-adding-contacts

Nathan Sobo created

Fix focus regression in contact finder

Change summary

crates/contacts_panel/src/contact_finder.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

crates/contacts_panel/src/contact_finder.rs 🔗

@@ -43,7 +43,9 @@ impl View for ContactFinder {
     }
 
     fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
-        cx.focus(&self.picker);
+        if cx.is_self_focused() {
+            cx.focus(&self.picker);
+        }
     }
 }