Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(ui): search tables upon hitting enter (#704)

Felix Wu0b4388107e2c
diff --git a/src/components/table/data-table-toolbar.tsx b/src/components/table/data-table-toolbar.tsx
index 866ea4981d..36b59fa94a 100644
--- a/src/components/table/data-table-toolbar.tsx
+++ b/src/components/table/data-table-toolbar.tsx
@@ -49,6 +49,11 @@ export function DataTableToolbar<TData, TValue>({
placeholder={searchConfig.placeholder}
value={searchString}
onChange={(event) => setSearchString(event.currentTarget.value)}
+ onKeyDown={(event) => {
+ if (event.key === "Enter") {
+ searchConfig.updateQuery(searchString);
+ }
+ }}
className="h-10 w-[200px] lg:w-[350px]"
/>
<Button