mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Prevents throw exception if Border is null.
This commit is contained in:
@@ -284,7 +284,7 @@ namespace Terminal.Gui {
|
||||
/// <inheritdoc/>
|
||||
public override void OnCanFocusChanged ()
|
||||
{
|
||||
if (Border.Child != null) {
|
||||
if (Border?.Child != null) {
|
||||
Border.Child.CanFocus = CanFocus;
|
||||
}
|
||||
base.OnCanFocusChanged ();
|
||||
|
||||
Reference in New Issue
Block a user