View auto-refreshes too many times when exposed filter is applied

Created on 2 September 2024, 4 months ago
Updated 11 September 2024, 3 months ago

Problem/Motivation

With auto refresh enabled on a view with an exposed filter, if the apply/search button on the exposed filter is clicked the view refreshes every n seconds for the number of times the button is clicked, where n is the refresh interval. It seems that a new refresh interval is set each time the 'apply' button is clicked without clearing the existing interval/timeout. Currently unsure if this behaviour occurs only when an exposed filter is applied or if it applies to other Ajax elements on the page/within the view.

Steps to reproduce

Create a view with a page display
Add autorefresh to view
Add an exposed filter to the view
Click on the apply button of the exposed filter
Wait for view to refresh after n seconds + n seconds for each time the button was clicked

Proposed resolution

Clearing the refresh interval/timeout when the button is clicked before setting a new one.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

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