Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect LifeCycleCtx with FocusChanged event
We were handling this event separately, and were accidentally reusing the parent context, instead of the child context; this has the concrete problem that the context had an incorrect WidgetId. This fix feels like the lesser of two evils; we add a mechanism for explicitly substituting a new event for the one received, ensuring that we only call the child's lifecycle method in one place.
- Loading branch information