• Greg Spencer's avatar
    Fixes Focus and FocusScope's assignment of canRequestFocus. (#46168) · e3005e69
    Greg Spencer authored
    This fixes an issue where lines like this:
    
        focusNode.canRequestFocus = widget.canRequestFocus ?? focusNode.canRequestFocus;
    
    Were causing the canRequestFocus bit to copy the status of the enclosing scope, since canRequestFocus also looks to the enclosing scope to decide if it can focus.
    e3005e69
focus_scope_test.dart 49.9 KB