Topic: table-editor search error with pagination off

Odhran priority asked 1 year ago


With the table-editor plugin, when I set pagination to false and search, I get a javascript error and the search doesn't work:Cannot read properties of null (reading 'setAttribute') in table-editor.js

I used the Async Data example https://mdbootstrap.com/docs/standard/plugins/table-editor/#section-async-data and just set pagination to false.

const asyncTable = new TableEditor( table, { columns }, { loading: true, pagination: false } );


Dawid Wajszczuk staff answered 1 year ago


Hi,

Thanks for reporting this. It has been added to our TODO list.

Keep coding,
Dawid


Odhran priority commented 1 year ago

Any workaround for this?


Dawid Wajszczuk staff commented 1 year ago

Yes. Change loading: true to loading: false as in the example from documentation that you have sent and it will work fine. Here is the snippet https://mdbootstrap.com/snippets/standard/d-wajszczuk/3479158#js-tab-view.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.0
  • Device: laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes