table-editor search error with pagination off


Topic: table-editor search error with pagination off

Odhran pro premium priority asked 2 weeks 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 a week ago

Hi,

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

Keep coding,
Dawid


Odhran pro premium priority commented a week ago

Any workaround for this?


Dawid Wajszczuk staff commented a week 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.
Status

Answered

Specification of the issue
  • User: Pro
  • 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