Skip to content

Conversation

@soraji
Copy link

@soraji soraji commented Jan 2, 2022

Hi, first of all i love your work! thanks for your efforts!

I want to suggest one thing to commit which is about prevent click events.
I thought clicking first page and previous page should be prevented when i am at the first page.
Also next page and the last page shouldn't be clicked when i'm at the last page.

The class ternary operator already applied, such as :class="{'disabled': pager.currentPage === 1}"
But i can't see any javascript ternary operator to prevent the events.
So i added the javascript ternary operator code to support your code 😜
Check it out. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant