Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

💻 fix: Prevent `DataTable` component Text Selection (#2749)

Anirudh612a58737db4
diff --git a/client/src/components/Chat/Input/Files/Table/DataTable.tsx b/client/src/components/Chat/Input/Files/Table/DataTable.tsx
index 75bbb3823a..347006b484 100644
--- a/client/src/components/Chat/Input/Files/Table/DataTable.tsx
+++ b/client/src/components/Chat/Input/Files/Table/DataTable.tsx
@@ -220,7 +220,7 @@ export default function DataTable<TData, TValue>({ columns, data }: DataTablePro
)}
</div>
<Button
- className="dark:border-gray-500 dark:hover:bg-gray-600"
+ className="dark:border-gray-500 dark:hover:bg-gray-600 select-none"
variant="outline"
size="sm"
onClick={() => table.previousPage()}
@@ -229,7 +229,7 @@ export default function DataTable<TData, TValue>({ columns, data }: DataTablePro
{localize('com_ui_prev')}
</Button>
<Button
- className="dark:border-gray-500 dark:hover:bg-gray-600"
+ className="dark:border-gray-500 dark:hover:bg-gray-600 select-none"
variant="outline"
size="sm"
onClick={() => table.nextPage()}