Reset button does not display when using AJAX

Created on 13 September 2021, over 3 years ago
Updated 19 May 2023, over 1 year ago

Problem/Motivation

The reset button is missing using AJAX and does not display even after user input is added.

This code seems to be validating if it should be displayed however even when it validates as true the Reset button is not being displayed in the view.

    // Never enable a reset button that has already been disabled.
    if (!isset($form['actions']['reset']['#access']) || $form['actions']['reset']['#access'] === TRUE) {
      $form['actions']['reset']['#access'] = $has_visible_filters;
    }

Steps to reproduce

1) Create a view with an exposed form
2) Enable the use of AJAX
3) Check "Include reset button (resets all applied exposed filters)" is the exposed form style settings form.
4) The reset button should appear if there is user input, however no button appears when input occurs

Proposed resolution

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇺🇸United States jldust

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