Autocomplete field throbber visibility doesn't correspond to the ajax request

Created on 26 August 2020, almost 4 years ago
Updated 18 April 2023, about 1 year ago

Problem/Motivation

In Claro, the autocomplete field throbber is showed based on a fixed timeout currently set at 400ms. This doesn't correspond to the actual length of the ajax request, which could lead into either loading animation not being visible when the autocomplete widget is still waiting for the ajax response, or the loading animation being visible when the autocomplete widget already got a response.

Steps to reproduce

  1. Navigate to a page with autocomplete, for example /admin/structure/views/add
  2. Enable network rule with a high latency to ensure that the ajax request takes longer than 400ms
  3. Confirm that the throbber is not visible after 400ms, even though the ajax request isn't complete

Proposed resolution

Make the autocomplete field throbber and loading text correspond to the ajax request length.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.1

Component
Claro 

Last updated 1 day ago

Created by

🇫🇮Finland lauriii Finland

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.69.0 2024