-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Order indices in dynamic filter form #2310
Comments
An external ad-hoc fix was implemented in this pull-request (see Note that since it's an external fix, the pagination links are fixed in the JS (the part starting with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far I'm aware, the number in the
fltN_
part of filter name refers to the filter order in the form, intended to retain said order on page refresh; and in the form itself it's handled by thelastCount
variable.The way it's currently handled, however, is as follows:
0
);this means filter indices are reset on form resubmission (which is also done by static links such as in pagination)
2
, the next one to be added will have index4
, and if there's none, the first one added will have index1
);this means new filter indices differ from the ones they get on form resubmission
this means the order of rows in the filter form will change after the form submission if any of them had their types modified in-place
this means when there's more than 9 filters, their positions will change around on every form submission (and/or when following pagination links)
Is this actually the intended behaviour? Because I'm pretty sure the intuitively expected behaviour would be for the filters to retain their indices and UI order across page refreshes (except for when a filter is removed, anyway).
The text was updated successfully, but these errors were encountered: