Fix focus regression in contact finder

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Nathan Sobo
2022-08-17 09:33:48 -06:00
co-authored by Antonio Scandurra
parent b60277cad6
commit 443432606e
+3 -1
View File
@@ -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);
}
}
}