From 02160ba0aefafb6b175cd4f421cf88e76dffb3ce Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 26 Dec 2023 17:49:29 +0300 Subject: [PATCH] Add after pressed --- .../hearder_style/select_header_style_dropdown_button.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); } }