Arrow-button triggers the List even if the Text-input is disabled

Created on 6 September 2012, about 12 years ago
Updated 15 September 2024, 2 months ago

Using modules that add the attribute "disabled=disabled" at Text-input the Arrow-button should be disabled too. Instead of this, it pop-ups the List and when you select an item from list Text-input is being updated.

So... editing the autocomplete_deluxe.js

I replaced

    parent.mousedown(function() {
      if (parent.hasClass('autocomplete-deluxe-single-open')) { 
        jqObject.autocomplete('close');
      } else {
        jqObject.autocomplete('search', '');
      }
    });

With

    parent.mousedown(function() {
      if (parent.hasClass('autocomplete-deluxe-single-open')) { 
        jqObject.autocomplete('close');
      } else if (parent.children('input.autocomplete-deluxe-form').attr('disabled') == false) {
        jqObject.autocomplete('search', '');
      }
    });
🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Single values

Created by

🇮🇪Ireland mojiro

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