From: Alan Knowles Date: Wed, 17 Mar 2021 08:32:40 +0000 (+0800) Subject: Roo/grid/GridDragZone.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=817dfb5976fc75dcf4ca4f33eecf00bebfa6fe77 Roo/grid/GridDragZone.js --- diff --git a/Roo/grid/GridDragZone.js b/Roo/grid/GridDragZone.js index 25de399587..947f2d29e2 100644 --- a/Roo/grid/GridDragZone.js +++ b/Roo/grid/GridDragZone.js @@ -44,12 +44,13 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, { } } + if (sm.getSelections && sm.getSelections().length < 1) { + return false; + } - var sels = sm.getSelections ? sm.getSelections() : ( - sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []); // before it used to all dragging of unseleted... - now we dont do that. - if(sels && sels.length){ + if(rowIndex){ // if editorgrid.. @@ -69,7 +70,8 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, { grid: this.grid, ddel: this.ddel, rowIndex: rowIndex, - selections: sels + selections: sm.getSelections ? sm.getSelections() : ( + sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []) }; } return false;