Skip to content

Commit

Permalink
Fix focus stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed May 3, 2024
1 parent d7a3d45 commit f21c82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/masonry/src/render_root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ impl RenderRoot {
// Only send RouteFocusChanged in case there's actual change
if old != new {
let event = LifeCycle::Internal(InternalLifeCycle::RouteFocusChanged { old, new });
self.root_lifecycle(event);
self.state.focused_widget = new;
self.root_lifecycle(event);

// TODO - Handle IME
// Send TextFieldFocused(focused_widget) signal
Expand Down

0 comments on commit f21c82b

Please sign in to comment.