fix: strip suggest box queries of whitespace

This commit is contained in:
Travis Abendshien
2026-08-12 23:17:40 -07:00
parent 524ebf1df0
commit 6b2d8d89b3
+1 -1
View File
@@ -143,7 +143,7 @@ class SuggestBox[T](QWidget):
raise NotImplementedError()
def _on_search_query_changed(self, query: str) -> None:
self._update_items(query)
self._update_items(query.strip())
def _on_search_query_submitted(self, query: str, always_create: bool = False) -> None:
# Focus search field if no query