diff --git a/apps/spreadsheeteditor/main/app/view/PivotSettings.js b/apps/spreadsheeteditor/main/app/view/PivotSettings.js index b6738db20..d572d9433 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotSettings.js +++ b/apps/spreadsheeteditor/main/app/view/PivotSettings.js @@ -206,9 +206,17 @@ define([ return this._dragEl[0]; }, - onDragEnd: function() { + onDragEnd: function(event) { this._dragEl && this._dragEl.remove(); this._dragEl = null; + + if (event && event.originalEvent.dataTransfer.dropEffect === "none") { + if (this.fromListView === 'pivot-list-values' && _.isNumber(this.itemIndex)) { + this.onRemove(this.pivotIndex, this.itemIndex); + } else { + this.onRemove(this.pivotIndex); + } + } }, onFieldsDragStart: function (item, index, event) {