Browse Source

Update next node in binding chain on error.

Fixes #831 and makes `Pushing_Null_To_RootObservable_Updates_Leaf_Node`
test pass.
pull/833/head
Steven Kirk 9 years ago
parent
commit
f4f0597dca
  1. 16
      src/Markup/Avalonia.Markup/Data/ExpressionNode.cs

16
src/Markup/Avalonia.Markup/Data/ExpressionNode.cs

@ -131,20 +131,14 @@ namespace Avalonia.Markup.Data
} }
else else
{ {
if (notification.Error != null) if (Next != null)
{ {
_observer.OnNext(notification); Next.Target = new WeakReference(notification.Value);
} }
else if (notification.HasValue)
if (Next == null || notification.Error != null)
{ {
if (Next != null) _observer.OnNext(value);
{
Next.Target = new WeakReference(notification.Value);
}
else
{
_observer.OnNext(value);
}
} }
} }
} }

Loading…
Cancel
Save