feat(huh prompter): clear search input after submitting query

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kynan Ware 2026-03-19 15:40:06 -06:00 committed by William Martin
parent cfb2224176
commit 13e47d0078

View file

@ -253,7 +253,8 @@ func (m *multiSelectSearchField) updateSearch(msg tea.KeyPressMsg) (huh.Model, t
m.search.Blur()
return m, nil
}
// New query — search in background with spinner.
// New query — clear input and search in background with spinner.
m.search.SetValue("")
return m, m.startSearch(query)
case key.Matches(msg, key.NewBinding(key.WithKeys("shift+tab"))):