Action buttons must allow click event even when switching datatables records page.
When datatable loads first time, all action buttons work fine, but as soon I access page 2 or 3 then no more action button works.
Resources (screenshots, code snippets etc.)
This issue is now fixed in version 1.
This is because action buttons from the next pages are not presented to DOM at the time you invoke your
setActions function, and that's why only buttons from the first page have event listeners added. You should clear your listeners and invoke your
setActions function every time the page is changed. You can achieve that by adding a proper event listener to change page buttons.
Keep coding, Marcin
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Premium
- Premium support: Yes
- Technology: MDB Vue
- MDB Version: MDB5 1.0.0-beta6
- Device: Desktop
- Browser: Chrome 91
- OS: Windows
- Provided sample code: No
- Provided link: Yes