Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: allow select & copy partial value (#17524)

ecmadao8409e5cc12ea
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
index 2fcf2cca32..5201386f61 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
@@ -264,6 +264,10 @@ const handleClick = (e: MouseEvent) => {
if (!allowSelect.value) {
return;
}
+ const selectedString = window.getSelection()?.toString();
+ if (selectedString) {
+ return;
+ }
// If the user is holding the ctrl/cmd key, select the row.
if (e.ctrlKey || e.metaKey) {
selectRow(props.rowIndex);