Problem/Motivation

The Ajax throbber disappears if added to a select list

Steps to reproduce

1. Build a form with the select list that triggers an Ajax event.
2. Open the form and trigger an event.
3. The progress throbber isn't shown to the user.

Proposed resolution

The issue is in ajax.js in Ajax.prototype.setProgressIndicatorThrobber method.

When this method adds throbber to the item it tries to append throbber inside the element instead of adding it after a select list.
So, it seems to me that we need to replace the condition on line 103 with this one if ($element.is('input') || $element.is('select'))

Issue fork bootstrap-3417769

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

_tarik_ created an issue. See original summary.

_tarik_’s picture

Status: Active » Needs review

Added changes proposed in the issue description.
Ready for review.

_tarik_’s picture

Issue summary: View changes

shelane made their first commit to this issue’s fork.

  • shelane committed 8210642b on 8.x-3.x authored by _tarik_
    Issue #3417769 by _tarik_: The Ajax throbber disappears if added to a...
shelane’s picture

Assigned: _tarik_ » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.