Closed
Description
Describe the bug
When using tab navigation and pressing the button that hides its container (e.g. a dialog box), the focus adorner remains.
To Reproduce
-
Download the minirepro source:
https://github.com/impworks/avalonia-focus-bug-repro -
Start the app
-
Click the "Open" button
-
Press "Tab" until the "Close" button is in focus
-
Press "Space" to close the dialog
Expected behavior
Focus adorner disappears when the element is hidden
Avalonia version
11.3.0
OS
Windows
Additional context
There is a temporary workaround to use FocusManager.ClearFocus
in the Close
command.
However, this method is marked as [Obsolete]
and cannot be safely used.