File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 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) {
206206
207207 this . dataSource . getCurrentData ( function ( data ) {
208208 if ( _ . dataController . isValidData ( data ) && data . dataArray . length > 0 ) {
209- _ . pivotView . pushTable ( ) ;
209+ _ . pivotView . pushTable ( {
210+ disableConditionalFormatting : true
211+ } ) ;
210212 _ . dataController . pushData ( ) ;
211213 _ . dataController . setData ( data ) ;
212214 _ . dataController . setDrillThroughHandler ( function ( params ) {
Original file line number Diff line number Diff line change @@ -98,7 +98,11 @@ PivotView.prototype._updateTablesPosition = function (seek) {
9898
9999} ;
100100
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 ) {
102106
103107 var _ = this ,
104108 tableElement = document . createElement ( "div" ) ;
@@ -107,7 +111,8 @@ PivotView.prototype.pushTable = function () {
107111 if ( this . tablesStack . length ) tableElement . style . left = "100%" ;
108112
109113 this . tablesStack . push ( {
110- element : tableElement
114+ element : tableElement ,
115+ opts : opts || { }
111116 } ) ;
112117
113118 this . elements . base . appendChild ( tableElement ) ;
@@ -609,6 +614,7 @@ PivotView.prototype.renderRawData = function (data) {
609614 if (
610615 this . controller . CONFIG . conditionalFormattingOn // totals formatting present
611616 && ! ( info . SUMMARY_SHOWN && rawData . length - 1 === y ) // exclude totals formatting
617+ && ! this . getCurrentTableData ( ) . opts . disableConditionalFormatting
612618 ) {
613619 this . applyConditionalFormatting (
614620 data [ "conditionalFormatting" ] ,
You can’t perform that action at this time.
0 commit comments