Disable filters while processing submission via AJAX

Created on 27 September 2019, about 5 years ago
Updated 30 April 2024, 8 months ago

Problem/Motivation

When using radios in an exposed filter, the radios are still enabled while the submission is being processed via AJAX.

This means that the user can click a different radio to change the filter but their selection will not be respected. Instead, only the original request will be processed; once it completes the user's selection will be replaced with the filter from the AJAX response. This is a confusing user experience.

This is particularly confusing when the filters are using the auto-submit feature.

Proposed resolution

In addition to disabling the submit button the inputs should also be disabled to prevent a confusing user-experience.

Additionally, a loading class on the input being processed would be useful for the styles to add a better indicator of processing state.

✨ Feature request
Status

Closed: outdated

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States malcolm_p

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