Skip to content
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

Next/previous links are still clickable on first, last and current page #29

Open
kstratis opened this issue Aug 11, 2017 · 1 comment
Open

Comments

@kstratis
Copy link

Using Rails 5.1.2 and will_paginate 3.1.6 it seems that even when a user is on the last/first page of the dataset, next and previous links are still clickable and generate an ajax request(using turbolinks).

disabled_link

Next may look to be disabled but the ajax request goes through nonetheless.

This is a look at Chrome inspector.

disabled_link_users

Is this behavior intentional?

EDIT: I've found a workaround to get the behavior I want by setting the following in my css:

.disabled {
  pointer-events: none;
}

but it's probably not the proper way to do it.

Related to: mislav/will_paginate#551

Any better ideas?

@yrgoldteeth
Copy link
Owner

I'm happy to take a pull request if someone has a fix for this, but I don't have the time to work on it and won't in the near future.

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

No branches or pull requests

2 participants