diff --git a/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart b/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart index 5f977b3b..09fa358f 100644 --- a/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart +++ b/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart @@ -216,8 +216,9 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState void _onDropdownButtonPressed() { if (_menuController.isOpen) { _menuController.close(); - return; + } else { + _menuController.open(); } - _menuController.open(); + afterButtonPressed?.call(); } }