Only shows on first ajax request

Created on 31 January 2025, 2 months ago

Problem/Motivation

The spinner appears on the first request but not subsequent ones.

Drupal.Ajax.prototype.progressIsSet is returning true on the second request as this.progress.element.length is 1 as there is an element, it's just that it doesn't exist in the DOM.

Steps to reproduce

I'm using a views better exposed form in a block.

Proposed resolution

Replace this.progress.element.length > 0 with document.querySelectorAll('.ajax-progress').length > 0

๐Ÿ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom dahousecat

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024