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

Issue with pjax and filters #104

Open
ExpandXSoln opened this issue May 13, 2020 · 1 comment
Open

Issue with pjax and filters #104

ExpandXSoln opened this issue May 13, 2020 · 1 comment

Comments

@ExpandXSoln
Copy link

When the scroll happens, for the next set of rows fetched, the filters applied are not getting honored. Any fixes available for this?

@ExpandXSoln
Copy link
Author

to give more details, my URL has something like
/dispatch-index?oa_number=&status=&DispatchOaTypeSearch%5Boadetails_ld_date%5D=&oa_type=&DispatchOaTypeSearch%5Bproduct_line_id%5D=&DispatchOaTypeSearch%5Bcust_id%5D=TRF&DispatchOaTypeSearch%5Bcust_po_number%5D=&DispatchOaTypeSearch%5Bcust_po_date%5D=&DispatchOaTypeSearch%5Bdelivery_date%5D=&DispatchOaTypeSearch%5Bgrand_total%5D=&DispatchOaTypeSearch%5Bprepared_by%5D=&DispatchOaTypeSearch%5Bcreated_on%5D=&sales_target_year=2019-20

As filter parameters, now when infinite scroll happens, the trigger link goes like
/dispatch-index?sales_target_year=2019-20&page=2&per-page=10

Because the URL is changes, the filter params are not retained in it the results fetched are different.

How to retain the origin URL parameters?

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

1 participant