Blur previous active component after active

This commit is contained in:
veeso
2021-03-14 15:24:47 +01:00
parent bda69c661f
commit 86dfc2bf97

View File

@@ -179,6 +179,8 @@ impl View {
cmp.active();
// Put current focus if any, into the stack
if let Some(active_component) = self.focus.take() {
// Blur
active_component.blur();
self.push_to_stack(active_component.as_str());
}
// Give focus to component