Browse Source

test

pull/6507/head
Takoooooo 5 years ago
parent
commit
063e5e7be3
  1. 5
      src/Avalonia.Styling/LogicalTree/ControlLocator.cs

5
src/Avalonia.Styling/LogicalTree/ControlLocator.cs

@ -57,7 +57,10 @@ namespace Avalonia.LogicalTree
private void Detached(object sender, LogicalTreeAttachmentEventArgs e)
{
_value = null;
// PublishNext(null);
if (_relativeTo.IsAttachedToLogicalTree)
{
PublishNext(null);
}
}
private void Update()

Loading…
Cancel
Save