mdbReact Datatable sort not working


Topic: mdbReact Datatable sort not working

aris abdulgani asked 2 months ago

Expected Behavior :

As given under the sample example in the above link on clicking the columns the table sorts. Now I have copied and pasted the exact same code given but when I click the column it sorts and becomes greyed out I cannot click it again. Can someone confirm if its the same for everyone and if not what am i most likely missing.

Jakub Chmura staff premium answered 2 months ago

Hi @aris abdulgani,

I have already tested examples from your link and I didn't have achieved this behavior like yours. Please try to remove the node-modules folder andpackage-lock.json / yarn.lock and then runnpm i / yarn command in your console. In most cases, this solution works with issues like yours.

If my solution doesn't work in your case please give me more details to reproduce this bug.

Best, Kuba

Please insert min. 20 characters.


Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: React
  • MDB Version: 4.25.4
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes