diff --git a/ui/widgets/focuslist.go b/ui/widgets/focuslist.go index 6dabac73..77c0d320 100644 --- a/ui/widgets/focuslist.go +++ b/ui/widgets/focuslist.go @@ -128,7 +128,10 @@ func (l *FocusListRowBase) SetItemID(id widget.ListItemID) { func (l *FocusListRowBase) EnsureUnfocused() { if l.Focused { - fyne.CurrentApp().Driver().CanvasForObject(l).Unfocus() + c := fyne.CurrentApp().Driver().CanvasForObject(l) + if c != nil { + c.Unfocus() + } } l.Focused = false }