Skip to content

Commit

Permalink
🐛 fix(Input): no need to call internal function if ValueChanged isn't…
Browse files Browse the repository at this point in the history
… assigned (#588)
  • Loading branch information
capdiem authored Apr 7, 2024
1 parent 88ded7b commit 80963cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ protected override void OnParametersSet()
{
SubscribeValidationStateChanged();

if (!EqualityComparer<TValue>.Default.Equals(Value, InternalValue))
if (ValueChanged.HasDelegate && !EqualityComparer<TValue>.Default.Equals(Value, InternalValue))
{
OnValueChanged(Value);
}
Expand Down

0 comments on commit 80963cf

Please sign in to comment.