Browse Source

Use event args to get value instead of feild

pull/6907/head
Yoh Deadfall 5 years ago
parent
commit
618f70a0f4
  1. 2
      src/Avalonia.Input/InputElement.cs

2
src/Avalonia.Input/InputElement.cs

@ -632,7 +632,7 @@ namespace Avalonia.Input
} }
else if (change.Property == IsKeyboardFocusWithinProperty) else if (change.Property == IsKeyboardFocusWithinProperty)
{ {
PseudoClasses.Set(":focus-within", _isKeyboardFocusWithin); PseudoClasses.Set(":focus-within", change.NewValue.GetValueOrDefault<bool>());
} }
} }

Loading…
Cancel
Save