Table Pagination with Tabs Javascript Error


Topic: Table Pagination with Tabs Javascript Error

rsenecal asked 3 years ago

I wanted to have two tabs with tables with independent pagination for each tab and each tab linking to first page of each tab.

With some custom Javascript, I managed to make it work flawlessly except for this error in the console when you switch tabs:Uncaught TypeError: Cannot read properties of null (reading 'split')

I tried to make a snippet but I could not make it work because it lacks the context of the full website (links to other pages). I can give you access to the "live" website though.

Go to Login

Then go to TransactionSwitching the tabs, you should see the error in the log console of the Chrome browser.You can check the source code (including Javascript)

Please note it is not yet a production website and the server may be down sometimes. That is the best I can do to try solving this issue.

Best Regards.


Grzegorz Bujański staff answered 3 years ago

Try to use data-mdb-target instead of href. This should help.


rsenecal commented 3 years ago

Awesome! That did it! Thanks! Happy New Year!


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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: Mac
  • Browser: Chrome
  • OS: Mac Os
  • Provided sample code: No
  • Provided link: Yes
Tags