From e144cad594489ec171a5aac0a2049efd83d7c8b7 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Mon, 6 Nov 2023 08:25:53 -0800 Subject: [PATCH] Temporary fix for fyne-io/fyne/issues/4374 --- widget/popup.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widget/popup.go b/widget/popup.go index f2753b34f7..089cce4cc0 100644 --- a/widget/popup.go +++ b/widget/popup.go @@ -25,6 +25,10 @@ type PopUp struct { // Hide this widget, if it was previously visible func (p *PopUp) Hide() { if p.overlayShown { + // Temporary fix for #4374 + // TODO: remove when proper fix is in + p.Canvas.Unfocus() + p.Canvas.Overlays().Remove(p) p.overlayShown = false }