Blur previous active component after active
This commit is contained in:
parent
7e075c5b3d
commit
fe6e0eeab5
|
@ -179,8 +179,10 @@ impl View {
|
|||
cmp.active();
|
||||
// Put current focus if any, into the stack
|
||||
if let Some(active_component) = self.focus.take() {
|
||||
// Blur
|
||||
active_component.blur();
|
||||
// Blur active component
|
||||
if let Some(active_component) = self.components.get_mut(active_component.as_str()) {
|
||||
active_component.blur();
|
||||
}
|
||||
self.push_to_stack(active_component.as_str());
|
||||
}
|
||||
// Give focus to component
|
||||
|
|
Loading…
Reference in a new issue