File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,9 @@ LightPivotTable.prototype.tryDrillThrough = function (filters) {
206
206
207
207
this . dataSource . getCurrentData ( function ( data ) {
208
208
if ( _ . dataController . isValidData ( data ) && data . dataArray . length > 0 ) {
209
- _ . pivotView . pushTable ( ) ;
209
+ _ . pivotView . pushTable ( {
210
+ disableConditionalFormatting : true
211
+ } ) ;
210
212
_ . dataController . pushData ( ) ;
211
213
_ . dataController . setData ( data ) ;
212
214
_ . dataController . setDrillThroughHandler ( function ( params ) {
Original file line number Diff line number Diff line change @@ -98,7 +98,11 @@ PivotView.prototype._updateTablesPosition = function (seek) {
98
98
99
99
} ;
100
100
101
- PivotView . prototype . pushTable = function ( ) {
101
+ PivotView . prototype . getCurrentTableData = function ( ) {
102
+ return this . tablesStack [ this . tablesStack . length - 1 ] ;
103
+ } ;
104
+
105
+ PivotView . prototype . pushTable = function ( opts ) {
102
106
103
107
var _ = this ,
104
108
tableElement = document . createElement ( "div" ) ;
@@ -107,7 +111,8 @@ PivotView.prototype.pushTable = function () {
107
111
if ( this . tablesStack . length ) tableElement . style . left = "100%" ;
108
112
109
113
this . tablesStack . push ( {
110
- element : tableElement
114
+ element : tableElement ,
115
+ opts : opts || { }
111
116
} ) ;
112
117
113
118
this . elements . base . appendChild ( tableElement ) ;
@@ -609,6 +614,7 @@ PivotView.prototype.renderRawData = function (data) {
609
614
if (
610
615
this . controller . CONFIG . conditionalFormattingOn // totals formatting present
611
616
&& ! ( info . SUMMARY_SHOWN && rawData . length - 1 === y ) // exclude totals formatting
617
+ && ! this . getCurrentTableData ( ) . opts . disableConditionalFormatting
612
618
) {
613
619
this . applyConditionalFormatting (
614
620
data [ "conditionalFormatting" ] ,
You can’t perform that action at this time.
0 commit comments