Skip to content

Commit

Permalink
fix issue salim-lachdhaf#450
Browse files Browse the repository at this point in the history
  • Loading branch information
Salim Lachdhaf committed Sep 22, 2022
1 parent 2572c6e commit 837f29c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/dropdown_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ class DropdownSearchState<T> extends State<DropdownSearch<T>> {
} else {
await _openSelectDialog();
}

//dismiss either by selecting items OR clicking outside the popup
widget.popupProps.onDismissed?.call();
_handleFocus(false);
}

Expand Down
6 changes: 1 addition & 5 deletions lib/src/widgets/selection_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,7 @@ class SelectionWidgetState<T> extends State<SelectionWidget<T>> {
}

///close popup
void closePopup() {
Navigator.pop(context);

widget.popupProps.onDismissed?.call();
}
void closePopup() => Navigator.pop(context);

Widget _multiSelectionValidation() {
if (!widget.isMultiSelectionMode) return SizedBox.shrink();
Expand Down

0 comments on commit 837f29c

Please sign in to comment.