TahaSh / vue-paginate

A simple vue.js plugin to paginate data
MIT License
593 stars 103 forks source link

Fix: currentPage becomes -1 when the list is empty #99

Open marcovdb opened 6 years ago

marcovdb commented 6 years ago

I think this solution is a little better than the one proposed in #95 since this fixes the problem at the source (but either will work!). Also added a test for it.

Fixes #94

tomagladiator commented 6 years ago

Tested, works !

ayushsharma82 commented 6 years ago

Tested! and Works Perfectly. Please Merge it as soon as possible to save some trouble for others.

frangeris commented 5 years ago

I've beed struggling with this bug for the entire day :/

Can anyone for the god sake merge this please? 😭

Ekion-1 commented 5 years ago

@TahaSh - Please can you merge this?