Skip to content

Commit

Permalink
Merge pull request #67 from CristiSandu/bugfix/unable-to-toggle-switc…
Browse files Browse the repository at this point in the history
…h-programatically

Fix programatically toggle switch
  • Loading branch information
jsuarezruiz authored Sep 13, 2024
2 parents 2ab4ea9 + 7335f75 commit 6e5b7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AlohaKit/Controls/ToggleSwitch/ToggleSwitch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Brush ThumbBrush
}

public static readonly BindableProperty IsOnProperty =
BindableProperty.Create(nameof(IsOn), typeof(bool), typeof(ToggleSwitch), false,
BindableProperty.Create(nameof(IsOn), typeof(bool), typeof(ToggleSwitch), false, defaultBindingMode: BindingMode.TwoWay,
propertyChanged: (bindableObject, oldValue, newValue) =>
{
if (newValue != null && bindableObject is ToggleSwitch toggleSwitch)
Expand Down

0 comments on commit 6e5b7ae

Please sign in to comment.