Skip to content

using javascript ternary operator to prevent click event on (first, previous, next, last) page #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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