Merge pull request #448 from Hixie/nested-focus-scopes
Fix focus bug that was breaking nested navigators
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user