Skip to content

Commit 9d8f54b

Browse files
authored
fix: field drag-and-drop offset and text selection with group-by active (baserow#5194)
Include activeGroupByWidth in crossSectionDraggingOffset so the drag placeholder and target indicator account for the group-by column width. Prevent default on mousedown to stop browser text selection during drag.
1 parent 00c4508 commit 9d8f54b

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Fix field drag-and-drop placeholder being offset by the group-by column width when a group by is active.",
4+
"issue_origin": "github",
5+
"issue_number": null,
6+
"domain": "database",
7+
"bullet_points": [],
8+
"created_at": "2026-04-14"
9+
}

web-frontend/modules/database/components/view/grid/GridView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ export default {
632632
crossSectionDraggingOffset() {
633633
const primary = this.fields.find((f) => f.primary)
634634
return (
635+
this.activeGroupByWidth +
635636
this.gridViewRowDetailsWidth +
636637
(primary ? this.getFieldWidth(primary) : 0)
637638
)

web-frontend/modules/database/components/view/grid/GridViewFieldDragging.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export default {
134134
* the correct position.
135135
*/
136136
start(field, event) {
137+
event.preventDefault()
137138
this.field = field
138139
this.targetFieldId = field.id
139140
this.dragging = true

0 commit comments

Comments
 (0)