vuematerial / vue-material

Vue.js Framework - ready-to-use Vue components with Material Design, free forever.
https://www.creative-tim.com/vuematerial
MIT License
9.88k stars 1.16k forks source link

Remote pagination `md-update` not working #2347

Closed dland512 closed 2 years ago

dland512 commented 2 years ago

I'm using version 1.0.0-beta-15.

Steps to reproduce

I'm attempting to use remote paging on the <md-table> control and I can't get it to work. When I run it in my code, everything seems to work except that the md-update callback doesn't get called.

Unfortunately, the example from the website has some issues. The code uses this.$http which isn't defined so I changed it to use fetch(). Also the use of <md-table-toolbar> appears to make the pager control disappear. I created a forked version here with those items fixed, but as you can see the paging doesn't work.

From what I can tell it appears that the callback supplied in md-update isn't being called when you click on the pager's previous and next buttons.

Which browser?

Google Chrome | 96.0.4664.55 (Official Build) (x86_64)
Revision | 38cededc5d09b785d12203f1d3209aa6eb293e79-refs/branch-heads/4664@{#1090}
OS | macOS Version 11.6 (Build 20G165)

What is expected?

Pager controls should show up and work. Also made the example code needs to be fixed.

Reproduction Link

https://codesandbox.io/s/vue-material-remote-pagination-forked-hyqjn?file=/App.vue

marqbeniamin commented 2 years ago

Hi @dland512, Thank you for using our framework! This bug is solved now in the dev branch. 🙏