Exposed form "Reset" button does not reset pagination state

Created on 20 September 2023, about 1 year ago

Problem/Motivation

If a views page with AJAX enabled and has an exposed filter, the Reset button no longer works once you select a letter in the alphabet pager.

- I am using the 'Basic' exposed form style
- The exposed form is using the 'Combine fields filter'
- Views ajax enabled, with 'Ajax history' unchecked

Steps to reproduce

A. The reset button does not work after the user enters a search term and clicks on a letter in the alpha pager.

  1. Enter search term in the exposed filter bar
  2. Click on Apply
  3. Click on any alphabet pager that contains the search term entered
  4. Click on Reset

B. No results are returned on 'All' page when a user enters a search term that begins with a letter different from the letter/page selected

  1. Enter search term in the exposed filter bar
  2. Click on Apply
  3. Click on any alphabet pager that contains the search term entered
  4. Enter another search term beginning with a different letter than the one you're currently on
  5. Click on Apply

It seems like the 'Reset' should behave the same way as a normal pager, it should reset to the default "page 1" ("All" page in this case).

As an aside, shouldn't the exposed filter results take precedence over the alpha pager? For example, on B#4 above, if a user has already clicked on a letter to further filter search results, then proceed to enter a new search term - should the "Apply" show results only in the letter selected? Or would it show results across all items, ignoring the letter clicked?

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States liut

Live updates comments and jobs are added and updated live.
  • views

    Involves, uses, or integrates with views. In Drupal 8 core, use the β€œVDC” tag instead.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024