Browse Source

Support buttons.xyz.attributes.class

Marcel Overdijk 2 years ago
parent
commit
af367076c1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -754,6 +754,9 @@ class BootstrapTable {
 
         if (buttonConfig.hasOwnProperty('attributes')) {
           for (const [attributeName, value] of Object.entries(buttonConfig.attributes)) {
+            if (attributeName === 'class') {
+              continue
+            }
             buttonHtml += ` ${attributeName}="${value}"`
           }
         }