File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 142
142
[style.height.px] ='getAreaHeight(rowArea) '> </ span >
143
143
</ ng-container >
144
144
</ ng-container >
145
- < igx-chip igxDrop (dragDrop) ="onDimDrop($event, rowArea, 0) " #notifyChip [hidden] ='true '>
145
+ < igx-chip igxDrop (dragDrop) ="onDimDrop($event, rowArea, 0) " #notifyChip [hidden] ='true ' [displayDensity] =" grid.displayDensity " >
146
146
Drop here to use as row
147
147
</ igx-chip >
148
148
</ ng-container >
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent {
313
313
} else {
314
314
const newDim = Object . assign ( { } , dims [ 0 ] ) ;
315
315
newDim . enabled = true ;
316
- currentDim . splice ( chipIndex , 0 , newDim ) ;
316
+ currentDim . splice ( targetIndex , 0 , newDim ) ;
317
317
}
318
318
const isDraggedFromColumn = ! ! this . grid . pivotConfiguration . columns ?. find ( x => x && x . memberName === dragId ) ;
319
319
if ( isDraggedFromColumn ) {
@@ -334,7 +334,9 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent {
334
334
}
335
335
this . grid . pipeTrigger ++ ;
336
336
this . grid . dimensionsChange . emit ( { dimensions : currentDim , dimensionCollectionType : dimension } ) ;
337
+ // clean states
337
338
this . onDimDragEnd ( ) ;
339
+ this . onAreaDragLeave ( event , area ) ;
338
340
}
339
341
340
342
protected getDimensionsByType ( dimension : PivotDimensionType ) {
You can’t perform that action at this time.
0 commit comments