Reset button doesn't work and never gets removed on AJAX enabled views

Created on 24 May 2016, about 9 years ago
Updated 22 May 2025, about 1 month ago

Problem/Motivation

- Create an AJAX enabled view with exposed filters (preferably a couple, at least one being text/string filter), enable the reset button
- Load the view page - no reset button
- click filter submit button
- Reset button appears
- Click Reset button
- View is refreshed but reset button never disappears and the views query is not the same as the initial load

- Do the same with no AJAX for the view and it works as expected

Proposed resolution

Overwrite the views exposed input during exposed form submission, otherwise exposed input is rebuilt from the current (AJAX POST) request data with contains the exposed values again.

Remaining tasks

Tests?

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

8.9 ⚰️

Component

views.module

Created by

🇬🇧United Kingdom damiankloip

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024