From 5821697c243762ad02e741bf6fad1fa45fa06c86 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Fri, 24 May 2024 16:09:32 -0700 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 f15d1cf37e..b21ab79d50 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 }