Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
JhonaCodes committed Sep 6, 2024
1 parent d5ae762 commit 75d54b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/multi_select.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ class _MultiSelectFieldState<T> extends State<MultiSelectField<T>>
Timer(const Duration(milliseconds: 100), () {
if (widget.defaultData != null &&
widget.defaultData!().isNotEmpty &&
widget.singleSelection && _selectedPick.isEmpty) {
widget.singleSelection &&
_selectedPick.isEmpty) {
/// If the current action is not removing an element, update [_selectedElements]
/// with [defaultData]. Otherwise, keep the previous value of [_selectedElements],
/// preventing it from being updated by [defaultData].
Expand Down

0 comments on commit 75d54b6

Please sign in to comment.