Fix event ordering issues
This commit is contained in:
parent
a7d52ee86f
commit
6f74854525
1 changed files with 5 additions and 5 deletions
|
@ -209,15 +209,15 @@ where
|
||||||
cx: &mut ViewContext<V>,
|
cx: &mut ViewContext<V>,
|
||||||
) -> Self::ElementState {
|
) -> Self::ElementState {
|
||||||
let mut element_state = element_state.unwrap_or_default();
|
let mut element_state = element_state.unwrap_or_default();
|
||||||
self.focus
|
self.interaction.initialize(cx, |cx| {
|
||||||
.initialize(element_state.focus_handle.take(), cx, |focus_handle, cx| {
|
self.focus
|
||||||
element_state.focus_handle = focus_handle;
|
.initialize(element_state.focus_handle.take(), cx, |focus_handle, cx| {
|
||||||
self.interaction.initialize(cx, |cx| {
|
element_state.focus_handle = focus_handle;
|
||||||
for child in &mut self.children {
|
for child in &mut self.children {
|
||||||
child.initialize(view_state, cx);
|
child.initialize(view_state, cx);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
element_state
|
element_state
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue