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

Fix focus bug that was breaking nested navigators
This commit is contained in:
Ian Hickson
2015-11-17 15:59:16 -08:00

View File

@@ -192,6 +192,7 @@ class FocusState extends State<Focus> {
void _scopeRemoved(GlobalKey key) {
assert(_focusedScope == key);
GlobalKey.unregisterRemoveListener(_currentlyRegisteredScopeRemovalListenerKey, _scopeRemoved);
_currentlyRegisteredScopeRemovalListenerKey = null;
setState(() {
_focusedScope = null;