Mouse click fix for term suggestion trigering Drupal #states

Created on 17 July 2013, over 11 years ago
Updated 15 September 2024, 2 months ago

We needed to use autocomplete field triggering to show other fields and used form_alter #states.
When we type part of term and use keyboard arrow Autocomplete Deluxe takes correct value, When we use mouse to select suggested term it did not trigger change and no hidden fields were shown. We provide code for fixing this!

To fix it we added in Autocomplete.js
String 175: jqObject.trigger('change');

May you include it in future versions?

πŸ› Bug report
Status

Closed: outdated

Component

Code (miscellaneous)

Created by

πŸ‡ΊπŸ‡ΈUnited States Jarviss

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