简体   繁体   中英

Tabulator.js - IE11 - “Error: Unspecified error. ..”

I have no idea what is wrong with this code:

import 'promise-polyfill/src/polyfill';
import Tabulator from 'tabulator-tables';

export default class Table {
 constructor(tableElement) {
   this.tableElemet = tableElement;
 }

 render(tableData, locale) {
        const self = this;
        this.table = new Tabulator(this.tableElement, {
            locale: locale,
            cellHozAlign: "right",
            columns: this.columns(),
            data: tableData,
            layout: "fitColumns",
            resizableColumns: false,
            maxHeight: "500px",
            pagination:"local",
            paginationSize: 30,
            paginationSizeSelector:[30, 50, 100, true],
            langs: this.langs(),
            downloadConfig: {
                columnGroups: true
            },
            tableBuilt: function (){
                self.modifyPagination(this.getPageMax());
            }
        });
 }

 //other functions
}   

Im using ES6. Only on IE getting error:


Error: Unspecified error. { 
  [functions]: , __proto__: { }, 
  description: "Unspecified error.", 
  message: "Unspecified error.", 
  name: "Error", 
  number: -2147467259, 
  stack: "Error: Unspecified error. 
        at RowManager.prototype.adjustTableSize (tabulator.js?v32:147:7) 
        at Anonymous function ({myFilePath}", Symbol()_6.e5wrk79qtse: undefined }

Someone have any ideas? I tried to display an empty table (without any parameters) - also had the same problem. If you need more information, let me know.

Tabulator v4.9.1

Browsers: IE 11

Windows 10

There was a regression introduced in version 4.9 that broke IE functionality, if you pull down the latest version, 4.9.3 it should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM