paginator: fix switching to sequential pagination.
Fix a bug where the paginator didn't correctly switch to sequential pagination when reaching the page limit.
This commit is contained in:
@@ -12,7 +12,7 @@ class PaginatorComponent < ApplicationComponent
|
||||
end
|
||||
|
||||
def use_sequential_paginator?
|
||||
paginator_mode != :numbered || current_page >= paginator_page_limit
|
||||
paginator_mode != :numbered
|
||||
end
|
||||
|
||||
def pages
|
||||
|
||||
Reference in New Issue
Block a user