Browse Source

theadClasses is not set by default

If a thead exists and $.BootstrapTable.DEFAULTS.theadClasses is set the class is never set on init.
Greg 6 years ago
parent
commit
85a689d735
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -667,6 +667,9 @@
       if (!this.$header.length) {
         this.$header = $(`<thead class="${this.options.theadClasses}"></thead>`).appendTo(this.$el)
       }
+      else{
+        this.$header.addClass(this.options.theadClasses);
+      }
       this.$header.find('tr').each((i, el) => {
         const column = []