diff --git a/Ooui/Element.cs b/Ooui/Element.cs index 2e32512..e3193e1 100644 --- a/Ooui/Element.cs +++ b/Ooui/Element.cs @@ -116,7 +116,7 @@ namespace Ooui protected bool SetBooleanAttributeProperty (string attributeName, bool newValue, [System.Runtime.CompilerServices.CallerMemberName] string propertyName = "") { var old = GetAttribute (attributeName) != null; - if (old != newValue) + if (old == newValue) return false; if (newValue) SetAttribute (attributeName, string.Empty); diff --git a/Ooui/Input.cs b/Ooui/Input.cs index 9574d11..d114c2d 100644 --- a/Ooui/Input.cs +++ b/Ooui/Input.cs @@ -40,11 +40,7 @@ namespace Ooui public bool IsChecked { get => GetBooleanAttribute ("checked"); - set { - if (SetBooleanAttributeProperty ("checked", value)) { - TriggerEventFromMessage (Message.Event (Id, "change", IsChecked)); - } - } + set => SetBooleanAttributeProperty ("checked", value); } public double Minimum {