From 100e8e4c3490dc96bf5a1c3f6102a41c210b3a76 Mon Sep 17 00:00:00 2001 From: Rob Gonnella Date: Sun, 25 Jun 2023 13:56:49 -0400 Subject: [PATCH] Clear switch view input on blur --- internal/app-info/info.go | 2 +- internal/ui/component/switch-view-input.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/app-info/info.go b/internal/app-info/info.go index 03d86a3..78f2a78 100644 --- a/internal/app-info/info.go +++ b/internal/app-info/info.go @@ -5,4 +5,4 @@ package app_info const NAME = "ops" // VERSION app version -const VERSION = "v0.1.4" +const VERSION = "v0.1.5" diff --git a/internal/ui/component/switch-view-input.go b/internal/ui/component/switch-view-input.go index acc391c..b22ea02 100644 --- a/internal/ui/component/switch-view-input.go +++ b/internal/ui/component/switch-view-input.go @@ -35,6 +35,7 @@ func NewSwitchViewInput(onSubmit func(text string)) *SwitchViewInput { input.SetBlurFunc(func() { input.SetBorder(false) input.SetPlaceholder("") + input.SetText("") }) ai := &SwitchViewInput{