feat(huh prompter): clear search input after submitting query
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
cfb2224176
commit
13e47d0078
1 changed files with 2 additions and 1 deletions
|
|
@ -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"))):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue