From 0285d717ebf4a724f389efe38ce417ca142374f4 Mon Sep 17 00:00:00 2001 From: Wills Manley Date: Mon, 6 Jan 2025 13:32:48 -0600 Subject: [PATCH] removed focus workaround to enable keyboard navigation of dropdown options --- packages/dropdown_button2/lib/src/dropdown_button2.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/dropdown_button2/lib/src/dropdown_button2.dart b/packages/dropdown_button2/lib/src/dropdown_button2.dart index ac09db7..79b4b0e 100644 --- a/packages/dropdown_button2/lib/src/dropdown_button2.dart +++ b/packages/dropdown_button2/lib/src/dropdown_button2.dart @@ -592,11 +592,6 @@ class _DropdownButton2State extends State> _isMenuOpen.value = true; _focusNode.requestFocus(); - // This is a temporary fix for the "dropdown menu steal the focus from the - // underlying button" issue, until share focus is fixed in flutter (#106923). - WidgetsBinding.instance.addPostFrameCallback((_) { - _dropdownRoute?._childNode.requestFocus(); - }); navigator .push(_dropdownRoute!) .then((_DropdownRouteResult? newValue) {