flutter/packages
Greg Spencer e2c5fd6c24
Fix route focusing and autofocus when reparenting focus nodes. (#42554)
This fixes a problem with reparenting of focus nodes where it would remove the node from the scope's focused children when reparented, even if it was being reparented to another place under the same scope. This only occurred if the scope in question didn't have focus.

This caused nodes to not get autofocused when they were a child of another node within the scope, and were reparented, and then the scope was given focus (as when a route is pushed).

This keeps the node in the scope's child list where it was if the node is reparented under a parent within the same scope.

- Added a test that tries to autofocus a TextField when the route is pushed and there is another 
  FocusNode above the text field. This was how this was first noticed: the autofocus got ignored in 
  this configuration.

- Added a test to focus_manager_test that tests for the specific case of reparenting a node when 
  it's in the focused children of the scope.
2019-10-14 12:32:06 -07:00
..
flutter Fix route focusing and autofocus when reparenting focus nodes. (#42554) 2019-10-14 12:32:06 -07:00
flutter_driver Roll dart package dependencies (#42496) 2019-10-11 11:12:31 -07:00
flutter_goldens Roll dart package dependencies (#42496) 2019-10-11 11:12:31 -07:00
flutter_goldens_client Roll dart package dependencies (#42496) 2019-10-11 11:12:31 -07:00
flutter_localizations Localization refresh (#42025) 2019-10-14 09:07:06 -07:00
flutter_test Roll dart package dependencies (#42496) 2019-10-11 11:12:31 -07:00
flutter_tools Print correct hostname when web server is launched (#42531) 2019-10-14 09:54:36 -07:00
flutter_web_plugins Channel buffers (#40165) 2019-09-19 16:58:54 -07:00
fuchsia_remote_debug_protocol Roll dart package dependencies (#42496) 2019-10-11 11:12:31 -07:00
analysis_options.yaml Revert "Roll engine to aed6b8c46b05c7cee4506a9757dd9ea1b40583c2." (#23170) 2018-10-16 12:57:07 -07:00