Skip to content

Commit

Permalink
fix(example): don't hide icon after every removal
Browse files Browse the repository at this point in the history
  • Loading branch information
benthillerkus committed Apr 6, 2022
1 parent 836f36f commit 5410e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/edit_icon/lib/view/element_selector/delegate.dart
Expand Up @@ -23,7 +23,7 @@ class ElementSelectorDelegate<DataType extends ElementSelectorData> {
for (var sub in _subscriptions) {
if (sub.onRemove != null) await sub.onRemove!(index);
}
onEmptied?.call();
if (_items.isEmpty) onEmptied?.call();
}

ElementSelectorDelegateSubscription subscribe(
Expand Down

0 comments on commit 5410e5d

Please sign in to comment.