File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,9 @@ export class DataTable {
452452
453453 ]
454454 }
455- tableVirtualDOM . attributes . class = joinWithSpaces ( tableVirtualDOM . attributes . class , this . options . classes . table )
455+ if ( ! tableVirtualDOM . attributes . class . includes ( this . options . classes . table ) ) {
456+ tableVirtualDOM . attributes . class = joinWithSpaces ( tableVirtualDOM . attributes . class , this . options . classes . table )
457+ }
456458 if ( this . options . tableRender ) {
457459 const renderedTableVirtualDOM : ( elementNodeType | void ) = this . options . tableRender ( this . data , tableVirtualDOM , "header" )
458460 if ( renderedTableVirtualDOM ) {
@@ -1107,7 +1109,9 @@ export class DataTable {
11071109 this . _tableFooters . forEach ( footer => newVirtualDOM . childNodes . push ( footer ) )
11081110 this . _tableCaptions . forEach ( caption => newVirtualDOM . childNodes . push ( caption ) )
11091111
1110- newVirtualDOM . attributes . class = joinWithSpaces ( newVirtualDOM . attributes . class , this . options . classes . table )
1112+ if ( ! newVirtualDOM . attributes . class . includes ( this . options . classes . table ) ) {
1113+ newVirtualDOM . attributes . class = joinWithSpaces ( newVirtualDOM . attributes . class , this . options . classes . table )
1114+ }
11111115
11121116 if ( this . options . tableRender ) {
11131117 const renderedTableVirtualDOM : ( elementNodeType | void ) = this . options . tableRender ( this . data , newVirtualDOM , "message" )
You can’t perform that action at this time.
0 commit comments