Commit 74f08e73 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #448 from Hixie/nested-focus-scopes

Fix focus bug that was breaking nested navigators
parents ba105468 ad2dccf9
...@@ -192,6 +192,7 @@ class FocusState extends State<Focus> { ...@@ -192,6 +192,7 @@ class FocusState extends State<Focus> {
void _scopeRemoved(GlobalKey key) { void _scopeRemoved(GlobalKey key) {
assert(_focusedScope == key); assert(_focusedScope == key);
GlobalKey.unregisterRemoveListener(_currentlyRegisteredScopeRemovalListenerKey, _scopeRemoved);
_currentlyRegisteredScopeRemovalListenerKey = null; _currentlyRegisteredScopeRemovalListenerKey = null;
setState(() { setState(() {
_focusedScope = null; _focusedScope = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment