Skip to content

Commit 2636c9e

Browse files
authored
Optional TouchEff.Command (#63)
* CanExecute return true without Command * cleanup
1 parent f1e7806 commit 2636c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TouchEffect/TouchEff.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ public bool? IsToggled
914914
public bool CanExecute
915915
=> IsAvailable &&
916916
Control.IsEnabled &&
917-
((Command?.CanExecute(CommandParameter) ?? false) || Completed != null);
917+
(Command?.CanExecute(CommandParameter) ?? true);
918918

919919
[EditorBrowsable(EditorBrowsableState.Never)]
920920
public VisualElement Control

0 commit comments

Comments
 (0)